@makehq/forman-schema 1.2.0 → 1.2.1
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/index.cjs +3 -3
- package/dist/index.js +3 -3
- package/package.json +2 -1
package/dist/index.cjs
CHANGED
|
@@ -66,7 +66,7 @@ var FORMAN_TYPE_MAP = {
|
|
|
66
66
|
filename: "string",
|
|
67
67
|
file: "string",
|
|
68
68
|
folder: "string",
|
|
69
|
-
hidden:
|
|
69
|
+
hidden: void 0,
|
|
70
70
|
integer: "number",
|
|
71
71
|
uinteger: "number",
|
|
72
72
|
password: "string",
|
|
@@ -192,7 +192,7 @@ function handleCollectionType(field, result, context) {
|
|
|
192
192
|
[name]: { const: value }
|
|
193
193
|
}
|
|
194
194
|
},
|
|
195
|
-
then: typeof nested === "string" ? { $ref:
|
|
195
|
+
then: typeof nested === "string" ? { $ref: nested } : nested
|
|
196
196
|
});
|
|
197
197
|
}
|
|
198
198
|
})
|
|
@@ -292,7 +292,7 @@ function handleSelectType(field, result, context) {
|
|
|
292
292
|
configurable: true,
|
|
293
293
|
enumerable: true,
|
|
294
294
|
writable: true,
|
|
295
|
-
value: typeof nested === "string" ? nested : toJSONSchemaInternal(
|
|
295
|
+
value: typeof nested === "string" ? { $ref: nested } : toJSONSchemaInternal(
|
|
296
296
|
{ type: "collection", spec: nested },
|
|
297
297
|
{
|
|
298
298
|
...context,
|
package/dist/index.js
CHANGED
|
@@ -39,7 +39,7 @@ var FORMAN_TYPE_MAP = {
|
|
|
39
39
|
filename: "string",
|
|
40
40
|
file: "string",
|
|
41
41
|
folder: "string",
|
|
42
|
-
hidden:
|
|
42
|
+
hidden: void 0,
|
|
43
43
|
integer: "number",
|
|
44
44
|
uinteger: "number",
|
|
45
45
|
password: "string",
|
|
@@ -165,7 +165,7 @@ function handleCollectionType(field, result, context) {
|
|
|
165
165
|
[name]: { const: value }
|
|
166
166
|
}
|
|
167
167
|
},
|
|
168
|
-
then: typeof nested === "string" ? { $ref:
|
|
168
|
+
then: typeof nested === "string" ? { $ref: nested } : nested
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
171
|
})
|
|
@@ -265,7 +265,7 @@ function handleSelectType(field, result, context) {
|
|
|
265
265
|
configurable: true,
|
|
266
266
|
enumerable: true,
|
|
267
267
|
writable: true,
|
|
268
|
-
value: typeof nested === "string" ? nested : toJSONSchemaInternal(
|
|
268
|
+
value: typeof nested === "string" ? { $ref: nested } : toJSONSchemaInternal(
|
|
269
269
|
{ type: "collection", spec: nested },
|
|
270
270
|
{
|
|
271
271
|
...context,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@makehq/forman-schema",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Forman Schema Tools",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Make",
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"@types/json-schema": "^7.0.15",
|
|
41
41
|
"@types/node": "^22.13.10",
|
|
42
42
|
"jest": "^29.7.0",
|
|
43
|
+
"json-schema": "^0.4.0",
|
|
43
44
|
"prettier": "^3.5.3",
|
|
44
45
|
"ts-jest": "^29.2.6",
|
|
45
46
|
"ts-node": "^10.9.2",
|