News for hackers. Stuff that matters.
Re:TOML: Tom's Obvious Minimal Language by magicalhippo on Sunday May 21, 2023 @05:43PM (#36024961)
If you want something stricter, specify it in the JSON Schema and use that[1].

You could declare your own "int32" type[2] for example, and use that. Then validate the input JSON against the schema before parsing it further.

[1]: https://datatracker.ietf.org/doc/html/draft-bhutton-json-sch...

[2]: https://json-schema.org/draft/2020-12/json-schema-core.html#...

There are no comments on this comment yet.