muonsoft/openapi-mock

Don't crash on invalid formats

bojanz opened this issue · 2 comments

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().

This would help me too. Any progress?

Fixed in v0.3.2