Last change
on this file since ceaed42 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
903 bytes
|
Line | |
---|
1 | import type { CodeKeywordDefinition, ErrorObject, KeywordErrorDefinition, SchemaObject } from "../../types";
|
---|
2 | import type { KeywordCxt } from "../../compile/validate";
|
---|
3 | import { _JTDTypeError } from "./error";
|
---|
4 | declare enum PropError {
|
---|
5 | Additional = "additional",
|
---|
6 | Missing = "missing"
|
---|
7 | }
|
---|
8 | declare type PropKeyword = "properties" | "optionalProperties";
|
---|
9 | declare type PropSchema = {
|
---|
10 | [P in string]?: SchemaObject;
|
---|
11 | };
|
---|
12 | export declare type JTDPropertiesError = _JTDTypeError<PropKeyword, "object", PropSchema> | ErrorObject<PropKeyword, {
|
---|
13 | error: PropError.Additional;
|
---|
14 | additionalProperty: string;
|
---|
15 | }, PropSchema> | ErrorObject<PropKeyword, {
|
---|
16 | error: PropError.Missing;
|
---|
17 | missingProperty: string;
|
---|
18 | }, PropSchema>;
|
---|
19 | export declare const error: KeywordErrorDefinition;
|
---|
20 | declare const def: CodeKeywordDefinition;
|
---|
21 | export declare function validateProperties(cxt: KeywordCxt): void;
|
---|
22 | export default def;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.