Skip to content

Conversation

joel-bach
Copy link
Member

@joel-bach joel-bach commented Apr 18, 2022

This PR aims to fix #55 and includes the changes from #73 but extends those to include support for nullable and correct the behavior for deserialization as well.

Example of the newly generated nullable types:

data X = X {
  requiredAndNullable :: (OpenAPI.Common.Nullable GHC.Types.Int),
  optionalAndNullable :: (GHC.Maybe.Maybe (OpenAPI.Common.Nullable Data.Text.Internal.Text)),
  optionalAndNonNullable :: (GHC.Maybe.Maybe Data.Text.Internal.Text)
}

@joel-bach joel-bach merged commit f2994a9 into master Apr 19, 2022
@joel-bach joel-bach deleted the nullable-support branch April 19, 2022 06:41
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.

Handling "required", but "nullable: true"
1 participant