ODCheckerArrayStructureOptions interface
under construction
We are still working the API Reference! This page might be incomplete or doesn't contain all details!
Overview
This interface has the options for ODCheckerArrayStructure!
Properties
optional allowDoubles boolean ➜ boolean
Allow double values (only for string, number & boolean)
optional allowedTypes array ➜ ("string"|"number"|"boolean"|"object"|"other"|"null"|"array")[]
Only allow these types in the array (for multi-type propertyCheckers)
inherited optional custom function ➜ (checker:api.ODChecker, value:api.ODValidJsonType, locationTrace:api.ODCheckerLocationTrace, locationId:api.ODId, locationDocs:null|string) => boolean
Add a custom checker function. Returns true when valid.
optional disableEmpty boolean ➜ boolean
Don't allow this array to be empty
inherited optional docs string ➜ string
Set the url to the documentation of this variable.
optional emptyRequired boolean ➜ boolean
This array is required to be empty
optional length number ➜ number
The length of the array needs to be the same as this value
optional maxLength number ➜ number
The maximum length of this array
optional minLength number ➜ number
The minimum length of this array
optional propertyChecker class ➜ api.ODCheckerStructure
The checker for all the properties in this array