Improve jsonSchema

This commit is contained in:
pietervdvn 2022-07-18 02:25:05 +02:00
parent 9efceb4751
commit dc6c35565e

View file

@ -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[],