-
Notifications
You must be signed in to change notification settings - Fork 54
Output "default" MSON as "default" JSON Schema #424
Comments
Looking at the MSON Spec, it states:
Which from what I understand, means that However, I do not see any reason why we should limit @zdne I would love to hear your feedback here, perhaps you might have a reason |
That is valid as far as I know. |
Sorry for commenting on an old issue. Apparently the issue still exist on latest drafter version (v4.0.0), although i've tried v3.2.0 and it seems to work just fine there. |
Hi there,
Currently MSON defaults are only emitted as
application/json
content and not asapplication/schema+json
which reminds me of #392.Related to our use apiaryio/mson#70 use case I would like to be able to export MSON Defaults as described here, for example:
as JSON Schema defaults that are part of the JSON Schema Validation spec in this way:
Which will enable us to deal with the Boolean Gotcha for the form generator we use and avoid empty required boolean checkboxes to be seen as
undefined
and be seen asfalse
instead.The text was updated successfully, but these errors were encountered: