We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It would be nice to have a definitive typescript interface for json schema.
typson.definitions("example/invoice/line.ts").done(function(tree: JsonSchema) { document.getElementById("types").innerHTML = JSON.stringify(tree, undefined, 2); });
This would facilitate the generation of server classes out of the JSON schema as you mention here
So, one can use the JSON schema to document and validate the JSON data. We can even generate the server classes out of the JSON schema.
This is the GIST of it:
interface IDependencyDescriptor { [s: string]: string; } interface IPropertyDescriptor { [s: string]: { '$ref'?: string; type?: string; format?: string; description?: string; }; } export interface IJsonSchema { type: string; properties: IPropertyDescriptor; required?: Array<string>; dependencies?: IDependencyDescriptor; id?: string; '$schema'?: string; description?: string; title?: string; definitions?: any; } export interface IJsonSchemaModel { [s: string]: IJsonSchema; }
The text was updated successfully, but these errors were encountered:
This would be a nice TS project. However, this is out of Typson's scope, which aims only at generating a schema.
Sorry, something went wrong.
No branches or pull requests
It would be nice to have a definitive typescript interface for json schema.
This would facilitate the generation of server classes out of the JSON schema as you mention here
This is the GIST of it:
The text was updated successfully, but these errors were encountered: