Improve jsonSchema
This commit is contained in:
parent
9efceb4751
commit
dc6c35565e
1 changed files with 4 additions and 2 deletions
|
@ -5,9 +5,11 @@ import {readFileSync, writeFileSync} from "fs";
|
||||||
* Extracts the data from the scheme file and writes them in a flatter structure
|
* Extracts the data from the scheme file and writes them in a flatter structure
|
||||||
*/
|
*/
|
||||||
|
|
||||||
interface JsonSchema {
|
export type JsonSchemaType = string | {$ref: string, description: string} | {type: string} | JsonSchemaType[]
|
||||||
|
|
||||||
|
export interface JsonSchema {
|
||||||
description?: string,
|
description?: string,
|
||||||
type?: string,
|
type?: JsonSchemaType,
|
||||||
properties?: any,
|
properties?: any,
|
||||||
items?: JsonSchema,
|
items?: JsonSchema,
|
||||||
allOf?: JsonSchema[],
|
allOf?: JsonSchema[],
|
||||||
|
|
Loading…
Reference in a new issue