-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add additionalProperties to HttpLink, LocalizedString, ea #7
Comments
I don't think it is needed: HttpLink It is usually only used in the response, not in requests (and the rule only applies to requests). PersonReference:
allOf:
- "$ref": "./common/v1/common-v1.yaml#/definitions/HttpLink"
- type: object
properties:
ssin:
"$ref": "#/definitions/Ssin" LocalizedString If a Belgian API deviates from the three declared languages (nl, fr, de), it usually declares its own variant type to be explicit about which languages are provided. E.g. if the server supports "nl", "fr" and "en", using the LocalizedString from openapi-common would lead the client to believe that "de" would be processed by the server but it would be silently ignored, and that "en" isn't supported. Such a type can still evolve in a backwards-compatible manner. E.g. removal of a language is covered:
|
If types are meant to be extended then I think there is no issue in configuring that explicitly in the common schemas.
The same applies to We require a default |
I think there are two closely related issues in this discussion: how to best document extensions of types, and how to implement open-world polymorphism. The latter issue is about the loss of extra properties when deserializing a edit: moved rest of the comment to a new discussion in #153 |
Following belgif/rest-guide#110 and the decision to not accept unknown properties, some objects in openapi-commons must be changed to mark them explicitly extensible
The text was updated successfully, but these errors were encountered: