Open edgarrmondragon opened 4 hours ago
https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-validation-00#section-7.2.3
Vocabularies do not support specifically declaring different value sets for keywords. Due to this limitation, and the historically uneven implementation of this keyword, it is RECOMMENDED to define additional keywords in a custom vocabulary rather than additional format attributes if interoperability is desired.
This means we probably should not use custom format
values, but rather define custom keywords (e.g. dbtype
).
Stub.
For example OpenAPI defines its own vocabulary on top of Draft 2020-12
Custom data types and formats: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#data-types
Examples: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#schema-object-examples
https://spec.openapis.org/oas/3.1/dialect/base
Related: