@rjsf/utils
Advanced tools
Comparing version 5.18.3 to 5.18.4
/** Below are the list of all the keys into various elements of a RJSFSchema or UiSchema that are used by the various | ||
* utility functions. In addition to those keys, there are the special `ADDITIONAL_PROPERTY_FLAG` and | ||
* `RJSF_ADDITONAL_PROPERTIES_FLAG` flags that is added to a schema under certain conditions by the `retrieveSchema()` | ||
* `RJSF_ADDITIONAL_PROPERTIES_FLAG` flags that is added to a schema under certain conditions by the `retrieveSchema()` | ||
* utility. | ||
@@ -26,3 +26,7 @@ */ | ||
export declare const REF_KEY = "$ref"; | ||
/** | ||
* @deprecated Replace with correctly spelled constant `RJSF_ADDITIONAL_PROPERTIES_FLAG` | ||
*/ | ||
export declare const RJSF_ADDITONAL_PROPERTIES_FLAG = "__rjsf_additionalProperties"; | ||
export declare const RJSF_ADDITIONAL_PROPERTIES_FLAG = "__rjsf_additionalProperties"; | ||
export declare const ROOT_SCHEMA_PREFIX = "__rjsf_rootSchema"; | ||
@@ -29,0 +33,0 @@ export declare const UI_FIELD_KEY = "ui:field"; |
/** Below are the list of all the keys into various elements of a RJSFSchema or UiSchema that are used by the various | ||
* utility functions. In addition to those keys, there are the special `ADDITIONAL_PROPERTY_FLAG` and | ||
* `RJSF_ADDITONAL_PROPERTIES_FLAG` flags that is added to a schema under certain conditions by the `retrieveSchema()` | ||
* `RJSF_ADDITIONAL_PROPERTIES_FLAG` flags that is added to a schema under certain conditions by the `retrieveSchema()` | ||
* utility. | ||
@@ -26,3 +26,7 @@ */ | ||
export const REF_KEY = '$ref'; | ||
/** | ||
* @deprecated Replace with correctly spelled constant `RJSF_ADDITIONAL_PROPERTIES_FLAG` | ||
*/ | ||
export const RJSF_ADDITONAL_PROPERTIES_FLAG = '__rjsf_additionalProperties'; | ||
export const RJSF_ADDITIONAL_PROPERTIES_FLAG = '__rjsf_additionalProperties'; | ||
export const ROOT_SCHEMA_PREFIX = '__rjsf_rootSchema'; | ||
@@ -29,0 +33,0 @@ export const UI_FIELD_KEY = 'ui:field'; |
import get from 'lodash/get'; | ||
import isEqual from 'lodash/isEqual'; | ||
import set from 'lodash/set'; | ||
import { ALL_OF_KEY, ANY_OF_KEY, ADDITIONAL_PROPERTIES_KEY, DEPENDENCIES_KEY, ITEMS_KEY, NAME_KEY, ONE_OF_KEY, PROPERTIES_KEY, REF_KEY, RJSF_ADDITONAL_PROPERTIES_FLAG, } from '../constants'; | ||
import { ALL_OF_KEY, ANY_OF_KEY, ADDITIONAL_PROPERTIES_KEY, DEPENDENCIES_KEY, ITEMS_KEY, NAME_KEY, ONE_OF_KEY, PROPERTIES_KEY, REF_KEY, RJSF_ADDITIONAL_PROPERTIES_FLAG, } from '../constants'; | ||
import getDiscriminatorFieldFromSchema from '../getDiscriminatorFieldFromSchema'; | ||
@@ -41,3 +41,3 @@ import getClosestMatchingOption from './getClosestMatchingOption'; | ||
if (ADDITIONAL_PROPERTIES_KEY in schema && schema[ADDITIONAL_PROPERTIES_KEY] !== false) { | ||
set(pathSchema, RJSF_ADDITONAL_PROPERTIES_FLAG, true); | ||
set(pathSchema, RJSF_ADDITIONAL_PROPERTIES_FLAG, true); | ||
} | ||
@@ -44,0 +44,0 @@ if (ITEMS_KEY in schema && Array.isArray(formData)) { |
{ | ||
"name": "@rjsf/utils", | ||
"version": "5.18.3", | ||
"version": "5.18.4", | ||
"main": "dist/index.js", | ||
@@ -74,3 +74,3 @@ "module": "lib/index.js", | ||
}, | ||
"author": "Heath Chiavettone <heath.chiavettone@freenome.com", | ||
"author": "Heath Chiavettone <heath.chiavettone@freenome.com>", | ||
"contributors": [], | ||
@@ -90,3 +90,3 @@ "keywords": [ | ||
"license": "Apache-2.0", | ||
"gitHead": "2fe849078afa19e2233d84f6d870da847d22094d" | ||
"gitHead": "63dbb6b8c98faa1c776cc6a66d47732a2be49cdf" | ||
} |
/** Below are the list of all the keys into various elements of a RJSFSchema or UiSchema that are used by the various | ||
* utility functions. In addition to those keys, there are the special `ADDITIONAL_PROPERTY_FLAG` and | ||
* `RJSF_ADDITONAL_PROPERTIES_FLAG` flags that is added to a schema under certain conditions by the `retrieveSchema()` | ||
* `RJSF_ADDITIONAL_PROPERTIES_FLAG` flags that is added to a schema under certain conditions by the `retrieveSchema()` | ||
* utility. | ||
@@ -26,3 +26,7 @@ */ | ||
export const REF_KEY = '$ref'; | ||
/** | ||
* @deprecated Replace with correctly spelled constant `RJSF_ADDITIONAL_PROPERTIES_FLAG` | ||
*/ | ||
export const RJSF_ADDITONAL_PROPERTIES_FLAG = '__rjsf_additionalProperties'; | ||
export const RJSF_ADDITIONAL_PROPERTIES_FLAG = '__rjsf_additionalProperties'; | ||
export const ROOT_SCHEMA_PREFIX = '__rjsf_rootSchema'; | ||
@@ -29,0 +33,0 @@ export const UI_FIELD_KEY = 'ui:field'; |
@@ -15,3 +15,3 @@ import get from 'lodash/get'; | ||
REF_KEY, | ||
RJSF_ADDITONAL_PROPERTIES_FLAG, | ||
RJSF_ADDITIONAL_PROPERTIES_FLAG, | ||
} from '../constants'; | ||
@@ -73,3 +73,3 @@ import getDiscriminatorFieldFromSchema from '../getDiscriminatorFieldFromSchema'; | ||
if (ADDITIONAL_PROPERTIES_KEY in schema && schema[ADDITIONAL_PROPERTIES_KEY] !== false) { | ||
set(pathSchema, RJSF_ADDITONAL_PROPERTIES_FLAG, true); | ||
set(pathSchema, RJSF_ADDITIONAL_PROPERTIES_FLAG, true); | ||
} | ||
@@ -76,0 +76,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1625656
19487