Nullability Configuration
Nullability is a feature for enabling the client to specify to the Value Generator to include null-like values instead of the specified ones - on demand.
Configuration
The configuration is based on description of how often should the null-like value occur in the generated dataset and what actual null-like value should be used.
This configuration describes the used Value Generator should generate 73% of values and
the rest 27% to be undefined
. The probability
has to be in a range [0, 1]
- otherwise it throws an error. The nullValue
should
be null
or undefined
.
How to use Nullability
This is an example how you can implement the nullability into your Schemas.
Using with Value Generator
This configuration is optional. When you do not provide it, the generated values won't include any specified not-null values.