@takeshape/schema 11.133.0 → 11.133.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.
@@ -539,6 +539,10 @@ const createShapeToPropertySchema = (projectSchema, definitions, definitionNames
539
539
  if (shapeSchema.enum) {
540
540
  return shapeSchema;
541
541
  }
542
+ // An empty object schema is valid, allowing anything, but will fail dereferencing
543
+ if (!Object.keys(shapeSchema).length) {
544
+ return shapeSchema;
545
+ }
542
546
  const shapeSchemaCopy = dereferenceObjectSchema(projectSchema, shapeSchema);
543
547
  if (shape.title) {
544
548
  shapeSchemaCopy.title = shape.title;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takeshape/schema",
3
- "version": "11.133.0",
3
+ "version": "11.133.4",
4
4
  "description": "TakeShape Schema",
5
5
  "homepage": "https://www.takeshape.io",
6
6
  "repository": {
@@ -56,9 +56,9 @@
56
56
  "p-reduce": "2.1.0",
57
57
  "semver": "7.7.2",
58
58
  "tiny-invariant": "1.3.3",
59
- "@takeshape/errors": "11.133.0",
60
- "@takeshape/json-schema": "11.133.0",
61
- "@takeshape/util": "11.133.0"
59
+ "@takeshape/errors": "11.133.4",
60
+ "@takeshape/util": "11.133.4",
61
+ "@takeshape/json-schema": "11.133.4"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@takeshape/json-schema-to-typescript": "11.0.0",
@@ -75,8 +75,8 @@
75
75
  "glob": "7.2.3",
76
76
  "json-schema-to-ts": "3.1.1",
77
77
  "shortid": "2.2.16",
78
- "@takeshape/infra": "11.133.0",
79
- "@takeshape/logger": "11.133.0"
78
+ "@takeshape/infra": "11.133.4",
79
+ "@takeshape/logger": "11.133.4"
80
80
  },
81
81
  "engines": {
82
82
  "node": ">=22"