UNPKG

@difizen/mana-core

Version:

65 lines 1.96 kB
export type JSONSchemaType = 'string' | 'number' | 'integer' | 'boolean' | 'null' | 'array' | 'object'; export interface IJSONSchema { id?: string; $id?: string; $schema?: string; type?: JSONSchemaType | JSONSchemaType[]; title?: string; default?: any; definitions?: IJSONSchemaMap; description?: string; properties?: IJSONSchemaMap; patternProperties?: IJSONSchemaMap; additionalProperties?: boolean | IJSONSchema; minProperties?: number; maxProperties?: number; dependencies?: IJSONSchemaMap | Record<string, string[]>; items?: IJSONSchema | IJSONSchema[]; minItems?: number; maxItems?: number; uniqueItems?: boolean; additionalItems?: boolean | IJSONSchema; pattern?: string; minLength?: number; maxLength?: number; minimum?: number; maximum?: number; exclusiveMinimum?: boolean | number; exclusiveMaximum?: boolean | number; multipleOf?: number; required?: string[]; $ref?: string; anyOf?: IJSONSchema[]; allOf?: IJSONSchema[]; oneOf?: IJSONSchema[]; not?: IJSONSchema; enum?: any[]; format?: string; const?: any; contains?: IJSONSchema; propertyNames?: IJSONSchema; $comment?: string; if?: IJSONSchema; then?: IJSONSchema; else?: IJSONSchema; defaultSnippets?: IJSONSchemaSnippet[]; errorMessage?: string; patternErrorMessage?: string; deprecationMessage?: string | undefined; markdownDeprecationMessage?: string; enumDescriptions?: string[]; markdownEnumDescriptions?: string[]; markdownDescription?: string; doNotSuggest?: boolean; suggestSortText?: string; allowComments?: boolean; allowTrailingCommas?: boolean; } export type IJSONSchemaMap = Record<string, IJSONSchema>; export interface IJSONSchemaSnippet { label?: string; description?: string; body?: any; bodyText?: string; } //# sourceMappingURL=jsonSchema.d.ts.map