Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

To be clear, I don’t have a lot of experience with JSON schema, but recently I found myself needing to validate Azure ARM templates using json schema, and my god is the Microsoft provided schema insane. Go look for yourself: https://schema.management.azure.com/schemas/2019-04-01/deplo...

That’s the root schema definition, but there are many, many references within, and they go deep. I tried using the bundling tool mentioned in the article to bundle all the references schemas and it came out to 25MB, minified. But if you don’t bundle, then you are right, your tool has to crawl the document and make many more http calls to deref everything. It’s so frustrating to work with.



That thing is ridiculous. Surely they build it in a different language and render the result as json.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: