Gets the JSON Schema of a TypeScript model/class by seeing if one exists in a cache. If not, one is generated and then cached.
| Name | Type | Default Value | Flags | Description |
|---|---|---|---|---|
| ctor |
Function
|
Contructor of class to get JSON Schema from |
Determines whether a given string or constructor is array type or not
| Name | Type | Default Value | Flags | Description |
|---|---|---|---|---|
| type |
string | Function
|
Type as string or wrapper |
Determines whether the given constructor is a custom type or not
| Name | Type | Default Value | Flags | Description |
|---|---|---|---|---|
| ctor |
Function
|
Constructor |
Converts property metadata into a JSON property definition
| Name | Type | Default Value | Flags | Description |
|---|---|---|---|---|
| meta |
PropertyDefinition
|
|
Converts a TypeScript class into a JSON Schema using TypeScript's reflection API
| Name | Type | Default Value | Flags | Description |
|---|---|---|---|---|
| ctor |
Function
|
Constructor of class to convert from |
Gets the wrapper function of primitives string, number, and boolean
| Name | Type | Default Value | Flags | Description |
|---|---|---|---|---|
| type |
string | Function
|
Name of type |