You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*`openapi3.SchemaFormatValidationDisabled` has been removed in favour of an option `openapi3.EnableSchemaFormatValidation()` passed to `openapi3.T.Validate`. The default behaviour is also now to not validate formats, as the OpenAPI spec mentions the `format` is an open value.
191
+
189
192
### v0.84.0
190
193
* The prototype of `openapi3gen.NewSchemaRefForValue` changed:
191
194
* It no longer returns a map but that is still accessible under the field `(*Generator).SchemaRefs`.
// EnableFormatValidation setting makes Validate not return an error when validating documents that mention schema formats that are not defined by the OpenAPIv3 specification.
// ValidationOptions provide configuration for validating OpenAPI documents.
9
+
typeValidationOptionsstruct {
10
+
SchemaFormatValidationEnabledbool
11
+
SchemaPatternValidationDisabledbool
12
+
}
13
+
14
+
typevalidationOptionsKeystruct{}
15
+
16
+
// EnableSchemaFormatValidation makes Validate not return an error when validating documents that mention schema formats that are not defined by the OpenAPIv3 specification.
0 commit comments