51 lines
654 B
TypeScript
51 lines
654 B
TypeScript
namespace _heimdall.helpers.json_schema
|
|
{
|
|
|
|
/**
|
|
*/
|
|
type type_type = (
|
|
"null"
|
|
|
|
|
"boolean"
|
|
|
|
|
"integer"
|
|
|
|
|
"float"
|
|
|
|
|
"string"
|
|
|
|
|
"array"
|
|
|
|
|
"object"
|
|
);
|
|
|
|
|
|
/**
|
|
*/
|
|
export type type_schema = {
|
|
type ?: (
|
|
type_type
|
|
|
|
|
Array<type_type>
|
|
);
|
|
additionalProperties ?: (
|
|
false
|
|
|
|
|
type_schema
|
|
);
|
|
properties ?: Record<string, type_schema>;
|
|
required ?: Array<string>;
|
|
description ?: string;
|
|
default ?: any;
|
|
minimum ?: int;
|
|
exclusiveMinimum ?: int;
|
|
maximum ?: int;
|
|
exclusiveMaximum ?: int;
|
|
enum ?: Array<any>;
|
|
items ?: type_schema;
|
|
anyOf ?: Array<type_schema>;
|
|
deprecated ?: boolean;
|
|
};
|
|
|
|
}
|