Swap nullable for type arrays validation - OpenAPI 3.1
Hello,
I'm trying to use your lib, but I'm facing with the following error:
{"error":"error unmarshaling JSON: failed to unmarshal property "properties" (*openapi3.Schemas): failed to unmarshal property "type" (*string): json: cannot unmarshal array into Go value of type string","message":"unexpected test setup error reading OpenAPI contract","level":"error"}
After I checked the issue, I found the array types cause the trouble, but as far as I know the openapi 3.1 schema allows this type of declarations (https://www.openapis.org/blog/2021/02/16/migrating-from-openapi-3-0-to-3-1-0).
Swap nullable for type arrays
In line with JSON Schema, the `type` keyword can now define multiple types for a schema with an array. This is useful new functionality, but has also made nullable redundant. In order to achieve the goal of letting JSON Schema tools understand OpenAPI, it was decided to remove nullable entirely instead of deprecate it.
# OpenAPI v3.0
type: string
nullable: true
# OpenAPI v3.1
type:
- "string"
- "null"
Is it possible to make available this feature in your lib? Thank you.