UNPKG

@igli.kokici/st-open-api

Version:

Generates API client SDKs from an OpenAPI specification written in OpenAPI version 3.x.x

21 lines (20 loc) 481 B
import { IType } from "./i-type"; export interface ISchema { type: IType | 'object' | 'array'; items?: ISchemaItem; required?: Array<string>; properties?: { [name: string]: ISchema; }; additionalProperties?: any; '$ref'?: string; enum?: Array<string | number>; allOf?: Array<{ '$ref': string; } | any>; } export interface ISchemaItem { type: 'string' | 'integer'; enum?: Array<string | number>; '$ref': string; }