Skip to content

Commit

Permalink
Fix useOptionalNullable
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenGraves committed Dec 20, 2024
1 parent db2deea commit f870ee0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion json-fleece-codegen-util/src/Fleece/CodeGenUtil.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1797,7 +1797,7 @@ fieldFleeceSchemaCode =
fleeceFieldFunction :: FleeceSchemaField -> Bool -> HC.HaskellCode
fleeceFieldFunction field useOptionalNullableBool
| fieldRequired field = fleeceCoreVar "required"
| useOptionalNullableBool = fleeceCoreVar "optionalNullable"
| useOptionalNullableBool = fleeceCoreVar "optionalNullable" <> " " <> fleeceCoreVar "OmitKey"
| otherwise = fleeceCoreVar "optional"

mkFleeceSchemaField ::
Expand Down

0 comments on commit f870ee0

Please sign in to comment.