Skip to content
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

dhall-openapi: Fix handling of additionalProperties #2343

Merged
merged 1 commit into from
Dec 3, 2021

Conversation

Gabriella439
Copy link
Collaborator

Fixes #2337

Basically, additionalProperties is analogous to
Map Text in dhall, which this change codifies.

Before this change, an object with an additionalProperties
field would get encoded as Map Text Text, regardless of what
the property type was. Now the property type is correctly
respected by the conversion code.

Fixes #2337

Basically, `additionalProperties` is analogous to
`Map Text` in `dhall`, which this change codifies.

Before this change, an `object` with an `additionalProperties`
field would get encoded as `Map Text Text`, regardless of what
the property type was.  Now the property type is correctly
respected by the conversion code.
Gabriella439 added a commit to dhall-lang/dhall-kubernetes that referenced this pull request Dec 3, 2021
Gabriella439 added a commit to dhall-lang/dhall-kubernetes that referenced this pull request Dec 3, 2021
@Gabriella439
Copy link
Collaborator Author

Here is the matching change to dhall-kubernetes: dhall-lang/dhall-kubernetes#180

@Gabriella439 Gabriella439 merged commit d50094d into master Dec 3, 2021
@Gabriella439 Gabriella439 deleted the gabriella/additionalProperties_2 branch December 3, 2021 15:47
Gabriella439 added a commit to dhall-lang/dhall-kubernetes that referenced this pull request Dec 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

openapi-to-dhall discards type information in additionalProperties
1 participant