evestera / json_typegen

Tools and libraries to create types for Rust, Kotlin, TypeScript and Python from JSON samples
https://typegen.vestera.as
Apache License 2.0
268 stars 26 forks source link

JSON Schema - Distinguish between `null` and `undefined` #21

Open evestera opened 3 years ago

evestera commented 3 years ago

For JSON Schema, null and an optional field / undefined is not the same, so the currently generated schemas fail for JSON where explicit nulls are used instead of omitting optional fields.