@rjsf/utils 5.18.2 → 5.18.4
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/LICENSE.md +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +2 -2
- package/dist/utils.esm.js +3 -1
- package/dist/utils.esm.js.map +2 -2
- package/dist/utils.umd.js +3 -1
- package/lib/constants.d.ts +5 -1
- package/lib/constants.js +5 -1
- package/lib/constants.js.map +1 -1
- package/lib/schema/toPathSchema.js +2 -2
- package/lib/schema/toPathSchema.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/src/constants.ts +5 -1
- package/src/schema/toPathSchema.ts +2 -2
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
ONE_OF_KEY,
|
|
13
13
|
PROPERTIES_KEY,
|
|
14
14
|
REF_KEY,
|
|
15
|
-
|
|
15
|
+
RJSF_ADDITIONAL_PROPERTIES_FLAG,
|
|
16
16
|
} from '../constants';
|
|
17
17
|
import getDiscriminatorFieldFromSchema from '../getDiscriminatorFieldFromSchema';
|
|
18
18
|
import { FormContextType, PathSchema, RJSFSchema, StrictRJSFSchema, ValidatorType } from '../types';
|
|
@@ -69,7 +69,7 @@ function toPathSchemaInternal<T = any, S extends StrictRJSFSchema = RJSFSchema,
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
if (ADDITIONAL_PROPERTIES_KEY in schema && schema[ADDITIONAL_PROPERTIES_KEY] !== false) {
|
|
72
|
-
set(pathSchema,
|
|
72
|
+
set(pathSchema, RJSF_ADDITIONAL_PROPERTIES_FLAG, true);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
if (ITEMS_KEY in schema && Array.isArray(formData)) {
|