json-schema-to-typescript
json-schema-to-typescript copied to clipboard
Compile JSON Schema to TypeScript type declarations
how about support bson schema of mongodb? since mongo $jsonSchema is commonly used in manay projects, this feature is more useful! hopes
When generating typescript types for json-patch as defined at http://json.schemastore.org/json-patch, I found the output slightly suspicious, which I wanted to pick up here. When I input the following string (where...
when "type" value is mismatch "defualt" value's type, the resutl is wrong. This: `{ "type": "object", "default": "foo" }` Results in: `export type Schema = string;` While I would have...
I see from [this issue](https://github.com/bcherny/json-schema-to-typescript/issues/211) that using `tsType` with packages seems to be possible. However I cannot seem to get this to work. The import I want to define is...
This PR adds support for `readonly` types in the TypeScript output. * Fixes #131 * Supersedes #230 and #353 (I'm pretty sure these are inactive; apologies if they aren't) #...
Currently, only the required array at the top of the object definition will result in non optional attributes. However, json-schema draft does support for required as a boolean at the...
**cli-color** has dependency **es5-ext**, which was affected by malicious code Author of **es5-ext** do it https://github.com/medikoo/es5-ext/commit/28de285ed433b45113f01e4ce7c74e9a356b2af2 Please be careful and don't use **cli-color**, **memoizee**, **es5-ext** and other libraries from *medikoo*...
Hello! In my schemas, all titles written in Russian, and now it means than all interfaces will be named as NoNameX. I add the ability to use id or keyNameFromDefinition...
Hi, I've noticed what seems like a bug with the generated types when the `required` keyword is used in a property which references a definition using `allOf` Here's an example...
Addressing https://github.com/bcherny/json-schema-to-typescript/issues/395 as per @ackl suggestion