[BUG] Validator Doesn't Check Whether Every Item in required
is in the properties
of a Schema Object
#18659
Labels
required
is in the properties
of a Schema Object
#18659
Update:
I found this in the JSONSchema validation doc:
But apparently the validator doesn't check it and allow validation of the following spec to be passed.
Original issue:
Go:
UNKNOWN_BASE_TYPE
Type Generated in Request Body when BothallOf
andtype
are definedDescription
Not sure if it's the spec's issue or generator issue (because it's not common to use partial object with
allOf
), the Go generated code containsUNKNOWN_BASE_TYPE
Although it's not commonly seen, I couldn't find any text in the spec against this pattern, and it passed the openapi-generator's validation. May I get some suggestions?
openapi-generator version
7.5.0
OpenAPI declaration file content or url
Or full minimal yaml:
Generation Details
The text was updated successfully, but these errors were encountered: