Hacker News new | ask | show | jobs
by MaxBarraclough 2049 days ago
> the machine-readable descriptions don't capture information like "this field could contain a string or an integer", or "the length of this array is dependent on the value in another field"

So the auto-generated code can implement correctness checks on the data, presumably at runtime? Sounds neat. Reminds me of Ada's discriminated types.

https://www.adaic.org/resources/add_content/standards/05rat/...