summaryrefslogtreecommitdiff
path: root/node_modules/yaml/dist/schema/json-schema.d.ts
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-11-28 17:14:38 +0100
committerMinteck <contact@minteck.org>2022-11-28 17:14:38 +0100
commit18efd30a263ec0d79a26a82cbd8c90c9f81056b7 (patch)
treeaea01bf3506dda706719fc68eb37b77ed9ef3fe8 /node_modules/yaml/dist/schema/json-schema.d.ts
downloadautoreport-18efd30a263ec0d79a26a82cbd8c90c9f81056b7.tar.gz
autoreport-18efd30a263ec0d79a26a82cbd8c90c9f81056b7.tar.bz2
autoreport-18efd30a263ec0d79a26a82cbd8c90c9f81056b7.zip
Open sourceHEADmane
Diffstat (limited to 'node_modules/yaml/dist/schema/json-schema.d.ts')
-rw-r--r--node_modules/yaml/dist/schema/json-schema.d.ts69
1 files changed, 69 insertions, 0 deletions
diff --git a/node_modules/yaml/dist/schema/json-schema.d.ts b/node_modules/yaml/dist/schema/json-schema.d.ts
new file mode 100644
index 0000000..20b005d
--- /dev/null
+++ b/node_modules/yaml/dist/schema/json-schema.d.ts
@@ -0,0 +1,69 @@
+declare type JsonSchema = boolean | ArraySchema | ObjectSchema | NumberSchema | StringSchema;
+declare type JsonType = 'array' | 'object' | 'string' | 'number' | 'integer' | 'boolean' | 'null';
+interface CommonSchema {
+ type?: JsonType | JsonType[];
+ const?: unknown;
+ enum?: unknown[];
+ format?: string;
+ allOf?: JsonSchema[];
+ anyOf?: JsonSchema[];
+ oneOf?: JsonSchema[];
+ not?: JsonSchema;
+ if?: JsonSchema;
+ then?: JsonSchema;
+ else?: JsonSchema;
+ $id?: string;
+ $defs?: Record<string, JsonSchema>;
+ $anchor?: string;
+ $dynamicAnchor?: string;
+ $ref?: string;
+ $dynamicRef?: string;
+ $schema?: string;
+ $vocabulary?: Record<string, boolean>;
+ $comment?: string;
+ default?: unknown;
+ deprecated?: boolean;
+ readOnly?: boolean;
+ writeOnly?: boolean;
+ title?: string;
+ description?: string;
+ examples?: unknown[];
+}
+interface ArraySchema extends CommonSchema {
+ prefixItems?: JsonSchema[];
+ items?: JsonSchema;
+ contains?: JsonSchema;
+ unevaluatedItems?: JsonSchema;
+ maxItems?: number;
+ minItems?: number;
+ uniqueItems?: boolean;
+ maxContains?: number;
+ minContains?: number;
+}
+interface ObjectSchema extends CommonSchema {
+ properties?: Record<string, JsonSchema>;
+ patternProperties?: Record<string, JsonSchema>;
+ additionalProperties?: JsonSchema;
+ propertyNames?: JsonSchema;
+ unevaluatedProperties?: JsonSchema;
+ maxProperties?: number;
+ minProperties?: number;
+ required?: string[];
+ dependentRequired?: Record<string, string[]>;
+ dependentSchemas?: Record<string, JsonSchema>;
+}
+interface StringSchema extends CommonSchema {
+ maxLength?: number;
+ minLength?: number;
+ patter?: string;
+ contentEncoding?: string;
+ contentMediaType?: string;
+ contentSchema?: JsonSchema;
+}
+interface NumberSchema extends CommonSchema {
+ multipleOf?: number;
+ maximum?: number;
+ exclusiveMaximum?: number;
+ minimum?: number;
+ exclusiveMinimum?: number;
+}