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
*/
interface JsonSchema {
export type JsonSchemaType = string | {$ref: string, description: string} | {type: string} | JsonSchemaType[]
export interface JsonSchema {
description?: string,
type?: string,
type?: JsonSchemaType,
properties?: any,
items?: JsonSchema,
allOf?: JsonSchema[],