Alternera. Plugin. Provisional. JsonSchema. AnyFormat
(alternera_plugin_sdk v0.9.0)
Copy Markdown
View Source
The last of Provisional.JsonSchema's format validators: it claims every
format the ones before it do not know and checks nothing, so an unknown
format is ignored, as JsonXema ignored it, instead of refusing the
schema (JSV refuses a format no validator claims).
JSV asks format in supported_formats(), so this answers a struct whose
Enumerable.member?/2 is always true (any_format/enumerable.ex). Should
JSV ask another way, Provisional.JsonSchema builds the schema with
formats as annotations instead of refusing it.