@takeshape/schema 8.151.1 → 8.151.2
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/dist/util/form-config.js
CHANGED
|
@@ -47,7 +47,7 @@ function normalizeForms(projectSchema) {
|
|
|
47
47
|
const propSchema = propertyAccessor.getValue(propName);
|
|
48
48
|
|
|
49
49
|
if (propSchema) {
|
|
50
|
-
const ref = (0, _refs.
|
|
50
|
+
const ref = (0, _refs.getRefOrItemsRef)(projectSchema, propSchema);
|
|
51
51
|
|
|
52
52
|
if (ref && propConfig.properties) {
|
|
53
53
|
const nestedShapeName = (0, _refs.refItemToShapeName)(ref);
|
package/es/util/form-config.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { deepClone } from '@takeshape/util';
|
|
2
|
-
import {
|
|
2
|
+
import { getRefOrItemsRef, refItemToShapeName } from '../refs';
|
|
3
3
|
import { createSchemaPropertyAccessor } from '../schema-util';
|
|
4
4
|
export function normalizeForms(projectSchema) {
|
|
5
5
|
const normalizedForms = {};
|
|
@@ -36,7 +36,7 @@ export function normalizeForms(projectSchema) {
|
|
|
36
36
|
const propSchema = propertyAccessor.getValue(propName);
|
|
37
37
|
|
|
38
38
|
if (propSchema) {
|
|
39
|
-
const ref =
|
|
39
|
+
const ref = getRefOrItemsRef(projectSchema, propSchema);
|
|
40
40
|
|
|
41
41
|
if (ref && propConfig.properties) {
|
|
42
42
|
const nestedShapeName = refItemToShapeName(ref);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takeshape/schema",
|
|
3
|
-
"version": "8.151.
|
|
3
|
+
"version": "8.151.2",
|
|
4
4
|
"description": "TakeShape Schema",
|
|
5
5
|
"homepage": "https://www.takeshape.io",
|
|
6
6
|
"repository": {
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"examples"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@takeshape/errors": "8.151.
|
|
25
|
-
"@takeshape/json-schema": "8.151.
|
|
26
|
-
"@takeshape/util": "8.151.
|
|
24
|
+
"@takeshape/errors": "8.151.2",
|
|
25
|
+
"@takeshape/json-schema": "8.151.2",
|
|
26
|
+
"@takeshape/util": "8.151.2",
|
|
27
27
|
"ajv": "^8.10.0",
|
|
28
28
|
"ajv-formats": "^2.1.1",
|
|
29
29
|
"blueimp-md5": "^2.10.0",
|