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
- contentId # <-- all required properties are inherited
- start
- end
Today I learned folks might actually put this into their API specs like so instead:
OfferingRequired:
allOf:
- $ref: '#/definitions/Offering'
- type: objectrequired:
- contentId # <-- all required properties are "inherited" through the composition of Offering
- start
- end
@JamesMessinger in your experience is this a common enough variant that I should adjust the code through a PR accordingly?
The text was updated successfully, but these errors were encountered:
Years ago I contributed two PRs #83 and #84 which added validation to ensure properties declared as required actually exist.
The test case I contributed uses a definition like so:
swagger-parser/test/specs/validate-spec/valid/inherited-required-properties.yaml
Lines 48 to 54 in c47b3f5
Today I learned folks might actually put this into their API specs like so instead:
@JamesMessinger in your experience is this a common enough variant that I should adjust the code through a PR accordingly?
The text was updated successfully, but these errors were encountered: