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
When comparing old3.json and new3.json (which is using oneOf and have introduced a required property in a request object) we get the following rule difference for 1034:
Rule
Error
JsonPath
1034
The new version has new required property 'testNullableProperty' that was not found in the old version.
#/components/schemas/TicketPostRequest
If we change to directly referencing the schema (i.e. not using oneOf) and compare old3a.json with new31.json we get a different and more precise rule difference:
Rule
Error
JsonPath
1034
The new version has new required property 'testNullableProperty' that was not found in the old version.
Hi,
We have an api generated by NSwag and it is using
oneOf
to define requests, but that doesn't seem to be recognized by openapi-comparator.Example:
vs without
oneOf
(manually created)I have attached four json documents
When comparing old3.json and new3.json (which is using
oneOf
and have introduced a required property in a request object) we get the following rule difference for 1034:#/components/schemas/TicketPostRequest
If we change to directly referencing the schema (i.e. not using
oneOf
) and compare old3a.json with new31.json we get a different and more precise rule difference:#/paths/~1api~1public~1form/post/requestBody/content/application~1json/schema
Would it be possible to get support for
oneOf
syntax as this is what NSwag generates?Regards
/Kristoffer
The text was updated successfully, but these errors were encountered: