Add setting to validate input schema before proceeding with compile
#48 opened on Sep 29, 2016
Repository metrics
- Stars
- (3,302 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
As a user I sometimes have invalid JSON schema and I would like a debugging option to tell me my schema is invalid so I don't waste time looking for issues in how JSON Schema is compiled to TS interface definition. As well, I want to be confident my JSON schema is valid before filing an issue.
A rough WIP is here: https://github.com/darcyparker/json-schema-to-typescript/tree/validateJSONSchema
An additional nice to have feature would be to log warnings about cases of not-expressible to typescript and suggest using decorators as mentioned here: https://github.com/bcherny/json-schema-to-typescript/issues/8