Don't crash on invalid formats
bojanz opened this issue · 2 comments
bojanz commented
Right now if the spec has an unrecognized format, "serve" will fail:
validating OpenAPI failed: invalid components: unsupported 'format' value "ulid"
OpenAPI considers the format to be freeform, a hint to clients, so we can afford to be less strict.
Kin has an option for this, so all it would take is to do:
openapi3.SchemaFormatValidationDisabled = true
somewhere before openapi3.NewLoader().
bwjohnson-ss commented
This would help me too. Any progress?
strider2038 commented
Fixed in v0.3.2