- generateOpenAPITypes(schema, options) ⇒
TypeScript.NodeArray
Create the TypeScript types declarations from an Open API document
- generateJSONSchemaTypes(schema, options) ⇒
TypeScript.NodeArray
Create the TypeScript types declarations from a JSONSchema document
- toSource(nodes) ⇒
Returns source from a list of TypeScript statements
Create the TypeScript types declarations from an Open API document
Kind: global function
Param | Type |
---|---|
schema | JSONSchema.Document |
options | Object |
options.baseName | string |
options.filterStatuses | Array.<number> |
options.generateUnusedSchemas | boolean |
options.camelizeInputs | boolean |
options.brandedTypes | Array.<string> |
options.generateRealEnums | boolean |
options.exportNamespaces | boolean |
options.requireCleanAPI | boolean |
Create the TypeScript types declarations from a JSONSchema document
Kind: global function
Param | Type |
---|---|
schema | JSONSchema.Document |
options | Object |
options.name | string |
options.brandedTypes | Array.<string> |
Returns source from a list of TypeScript statements
Kind: global function
Returns: string
Param | Type |
---|---|
nodes | TypedPropertyDescriptor.NodeArray |