-
Notifications
You must be signed in to change notification settings - Fork 214
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
yaml-to-dhall crashes (union in schema) #1074
Comments
Unions should be supported. I'll take a look at this soon to figure out what went wrong here |
Gabriella439
added a commit
that referenced
this issue
Jul 7, 2019
Fixes #1074 `dhall-to-{json,yaml}` treat empty alternatives as strings of the same name, but `{json,yaml}-to-dhall` were missing the corresponding logic to decode strings to empty alternatives, which this change fixes. This also ensures that the conversion logic contains no more `undefined`s, by making the union conversion branch total.
Fix is up here: #1083 |
mergify bot
pushed a commit
that referenced
this issue
Jul 8, 2019
* Handle empty alternatives when converting from JSON Fixes #1074 `dhall-to-{json,yaml}` treat empty alternatives as strings of the same name, but `{json,yaml}-to-dhall` were missing the corresponding logic to decode strings to empty alternatives, which this change fixes. This also ensures that the conversion logic contains no more `undefined`s, by making the union conversion branch total. * Clarify successful cases for union handling Co-Authored-By: Simon Jakobi <simon.jakobi@gmail.com> * Add missing trailing newline ... as caught by @sjakobi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yaml-to-dhall
(andjson-to-dhall
) crashes if there is a union in schema:If unions are not supported by those utilities (which seems to be the case), they should explain this to the user and exit gracefully.
The text was updated successfully, but these errors were encountered: