Validator for all specified properties written, not yet tested.
This commit is contained in:
parent
6093a775f1
commit
34847058fc
3 changed files with 233 additions and 61 deletions
|
|
@ -40,6 +40,12 @@
|
|||
[x]
|
||||
(if x true false))
|
||||
|
||||
(defn xsd-non-negative-integer?
|
||||
"Return `true` if `value` matches the pattern for an
|
||||
[xsd:nonNegativeInteger](https://www.w3.org/TR/xmlschema11-2/#nonNegativeInteger), else `false`"
|
||||
[x]
|
||||
(and (integer? x)(>= x 0)))
|
||||
|
||||
(defn has-type?
|
||||
"Return `true` if object `x` has a type in `acceptable`, else `false`.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue