react-json-schema-ui-editor
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -294,2 +294,9 @@ // src/components/JsonSchemaContext.tsx | ||
onChange: (value) => { | ||
if (currentRowState.type === "integer" || currentRowState.type === "number") { | ||
setSchemaProperty( | ||
`${getPropertyPath(path)}enum`, | ||
value.map((val) => Number(val)) | ||
); | ||
return; | ||
} | ||
setSchemaProperty( | ||
@@ -296,0 +303,0 @@ `${getPropertyPath(path)}enum`, |
{ | ||
"name": "react-json-schema-ui-editor", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "React component to edit json schema in a UI.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
90064
966