Skip to content

fix!: stricter booleans#146

Merged
mnahkies merged 4 commits into
mainfrom
mn/fix/stricter-booleans
Apr 7, 2024
Merged

fix!: stricter booleans#146
mnahkies merged 4 commits into
mainfrom
mn/fix/stricter-booleans

Conversation

@mnahkies
Copy link
Copy Markdown
Owner

@mnahkies mnahkies commented Apr 7, 2024

Booleans now must be one of:

  • true | "true" | 1 -> true
  • false | "false" | 0 -> false
  • anything else -> error

Where previously any truthy value would be accepted as true

Introduces the concept of a "static schema" to create a PermissiveBoolean schema to aid with generation. This is a little annoying to unit test as it introduces import statements that don't work in the test harness properly.

@mnahkies mnahkies enabled auto-merge (squash) April 7, 2024 10:01
@mnahkies mnahkies merged commit c896ea9 into main Apr 7, 2024
@mnahkies mnahkies deleted the mn/fix/stricter-booleans branch April 7, 2024 10:03
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.

1 participant