mnahkies / openapi-code-generator

A code generation tool for openapi 3 / 3.1 specifications written in typescript, primarily aimed at generating typescript clients and server stubs. Other target languages may be added in future.
https://openapi-code-generator.nahkies.co.nz/
MIT License
17 stars 2 forks source link

fix!: stricter booleans #146

Closed mnahkies closed 5 months ago

mnahkies commented 5 months ago

Booleans now must be one of:

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.