mirror of https://github.com/kdl-org/kdl.git
Add missing `format` section for number validations.
This commit is contained in:
parent
b927e2dae4
commit
7348b22d49
|
|
@ -248,7 +248,7 @@ and property names when the `node-names` or `prop-names` options are activated.
|
|||
* `pattern`: Regex pattern or patterns to test prop values against. Specific regex syntax may be implementation-dependent.
|
||||
* `min-length`: Minimum length, if a string.
|
||||
* `max-length`: Maximum length, if a string.
|
||||
* `format`: Intended data format, if the value is a string. Possible values are:
|
||||
* `format`: Intended data format, if the value is a string. Reserved values are:
|
||||
* `date-time`: ISO8601 date/time format.
|
||||
* `time`: "Time" section of ISO8601.
|
||||
* `date`: "Date" section of ISO8601.
|
||||
|
|
@ -280,6 +280,21 @@ and property names when the `node-names` or `prop-names` options are activated.
|
|||
* `>=`: Greater than or equal to.
|
||||
* `<`: Less than.
|
||||
* `<=`: Less than or equal to.
|
||||
* `format`: Intended data format for numeric values. Reserved values are:
|
||||
* `i8`: 8-bit signed integer
|
||||
* `i16`: 16-bit signed integer
|
||||
* `i32`: 32-bit signed integer
|
||||
* `i64`: 64-bit signed integer
|
||||
* `u8`: 8-bit unsigned integer
|
||||
* `u16`: 16-bit unsigned integer
|
||||
* `u32`: 32-bit unsigned integer
|
||||
* `u64`: 64-bit unsigned integer
|
||||
* `isize`: Platform-dependent signed integer
|
||||
* `usize`: Platform-dependent unsigned integer
|
||||
* `f32`: IEEE 754 single (32-bit) precision floating point number
|
||||
* `f64`: IEEE 754 double (64-bit) precision floating point number
|
||||
* `decimal64`: IEEE 754-2008 64-bit decimal floating point number
|
||||
* `decimal128`: IEEE 754-2008 128-bit decimal floating point number
|
||||
|
||||
### `definitions` node
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue