mirror of https://github.com/kdl-org/kdl.git
Add more types to the schema itself.
This commit is contained in:
parent
7348b22d49
commit
deb95b4cd8
|
|
@ -224,13 +224,13 @@ document {
|
||||||
type "number"
|
type "number"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
node "format" description="Intended data format, if the value is a string." {
|
node "format" description="Intended data format." {
|
||||||
max 1
|
max 1
|
||||||
value {
|
value {
|
||||||
min 1
|
min 1
|
||||||
type "string"
|
type "string"
|
||||||
// https://json-schema.org/understanding-json-schema/reference/string.html#format
|
// https://json-schema.org/understanding-json-schema/reference/string.html#format
|
||||||
enum "date-time" "date" "time" "email" "idn-email" "hostname" "idn-hostname" "ipv4" "ipv6" "uri" "uri-reference" "iri", "iri-reference" "uri-template" "regex" "uuid"
|
enum "date-time" "date" "time" "duration" "decimal" "currency" "country-2" "country-3" "country-subdivision" "email" "idn-email" "hostname" "idn-hostname" "ipv4" "ipv6" "uri" "uri-reference" "iri", "iri-reference" "uri-template" "regex" "uuid" "i8" "i16" "i32" "i64" "u8" "u16" "u32" "u64" "isize" "usize" "f32" "f64" "decimal64" "decimal128"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
node "%" description="Only used for numeric values. Constrains them to be multiples of the given number(s)" {
|
node "%" description="Only used for numeric values. Constrains them to be multiples of the given number(s)" {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue