core/source/logic/helpers/json_schema.ts
Christian Fraß 4dbb7474e7 [int]
2023-06-18 23:29:57 +02:00

48 lines
575 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;
maximum ?: int;
enum ?: Array<any>;
items ?: type_schema;
anyOf ?: Array<type_schema>;
};
}