-
Notifications
You must be signed in to change notification settings - Fork 54
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
"Fixed" type attribute should propagate to an empty object member #686
Labels
Comments
Thanks for the report @Ge11ert, we'll look into this. (internal tracking: OACS-5809) |
The above patch would fix this particular case, but not sure what else it could break. |
kylef
added a commit
that referenced
this issue
May 13, 2019
kylef
added a commit
that referenced
this issue
May 13, 2019
@Ge11ert We've released a fix in Drafter 4.0.0-pre.6. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm running on v. 4.0.0-pre.4.
According to MSON Spec,
fixed
type attribute should propagate to nested members.First example:
produces the following schema:
Second example (
obj_member
has explicitfixed
attribute)produces this (
obj_member
has field"additionalProperties": false
now) :Expected behaviour:
These 2 examples should generate the same json-schema.
P.S. If
obj_member
has any nested properties,fixed
attribute propagation works correctly.The text was updated successfully, but these errors were encountered: