@maif/react-forms 1.0.37-rc.1 → 1.0.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -219,10 +219,10 @@ httpClient = {(url, method) => fetch(url, {
219
219
  ```
220
220
  ## constraints
221
221
  Possible constraints are provided by import `constraints` from **@maif/react-form** or can be wrotes on json
222
+ By default all fields of the form are nullable (they can accept `null` or `undefined` value).
222
223
 
223
224
  - [mixed](#mixed)
224
225
  - [`constraints.required(message?:string)`](#constraintsrequiredmessagestring)
225
- - [`constraints.nullable()`](#constraintsnullable)
226
226
  - [`constraints.test(name: string, message?:string, test: (val: any) => boolean | Promise<boolean>)`](#constraintstestname-string-messagestring-test-val-any--boolean--promiseboolean)
227
227
  - [`constraints.when(ref: string, test: (val: any) => boolean, then: any = [], otherwise: any = [])`](#constraintswhenref-string-test-val-any--boolean-then-any---otherwise-any--)
228
228
  - [`constraints.oneOf(arrayOfValues: any[], message?:string)`](#constraintsoneofarrayofvalues-any-messagestring)
@@ -247,16 +247,6 @@ the following methods works for all type types of value.
247
247
  {type: 'required', message: "this field is required"}
248
248
  ```
249
249
 
250
- #### `constraints.nullable()`
251
- Indicates the `null` is a valid value for the schema. Without `nullable` `null` will be treated as an error.
252
-
253
- ```javascript
254
- constraints.nullable()
255
- ```
256
- ```javascript
257
- {type: 'nullable'}
258
- ```
259
-
260
250
  #### `constraints.test(name: string, message?:string, test: (val: any) => boolean | Promise<boolean>)`
261
251
  Adds a test function to the validation chain. The test must provide a `name`, an error `message` and a validation function that takes in entry the current value and must return a boolean result. The test can return a promise that resolve a boolean result
262
252