-
Notifications
You must be signed in to change notification settings - Fork 399
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
allOf with additional required fields doesn't make them required #157
Labels
Comments
thejuan
changed the title
allOf with additional required fields doesn't include them
allOf with additional required fields doesn't make them required
Apr 4, 2018
Yes, that is correct. This is also a bug in quicktype that I just discovered ;-) |
Related: #96 |
I work around this by pre-processing the schemas with |
bcherny
pushed a commit
that referenced
this issue
Jul 24, 2020
bcherny
pushed a commit
that referenced
this issue
Jul 24, 2020
bcherny
pushed a commit
that referenced
this issue
Jul 26, 2020
bcherny
pushed a commit
that referenced
this issue
Jul 26, 2020
bcherny
pushed a commit
that referenced
this issue
Jul 26, 2020
bcherny
added a commit
that referenced
this issue
Nov 29, 2020
[Feat] Add support for implicit intersection types (fix #157)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should be able to specify a reference to a type and a set of required fields using allOf.
At the moment the specified required fields are not required in the typescript (i.e. generated wtih a ? on the property)
In above postalCode should be marked as required, but it's not ATM
https://stackoverflow.com/questions/41958392/extending-ref-with-additional-required-fields
The text was updated successfully, but these errors were encountered: