@es-joy/jsoe 0.20.2 → 0.20.3

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/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGES TO `@es-joy/jsoe`
2
2
 
3
+ ## 0.20.3
4
+
5
+ - fix: require object only if no schema
6
+
3
7
  ## 0.20.2
4
8
 
5
9
  - fix: setting of pull-downs with schemas
package/dist/index.js CHANGED
@@ -2745,7 +2745,7 @@ const buildTypeChoices = ({
2745
2745
  schemaContent
2746
2746
  }) => {
2747
2747
  // console.log('format', format, 'state', state, 'path', typeNamespace);
2748
- const typeAndSchemaInfo = requireObject
2748
+ const typeAndSchemaInfo = requireObject && !schemaContent
2749
2749
  ? {
2750
2750
  typeOptions: [types.getOptionForType('object')], schemaObjects: undefined
2751
2751
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@es-joy/jsoe",
3
- "version": "0.20.2",
3
+ "version": "0.20.3",
4
4
  "type": "module",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./src/index.js",
@@ -123,7 +123,7 @@ export const buildTypeChoices = ({
123
123
  schemaContent
124
124
  }) => {
125
125
  // console.log('format', format, 'state', state, 'path', typeNamespace);
126
- const typeAndSchemaInfo = requireObject
126
+ const typeAndSchemaInfo = requireObject && !schemaContent
127
127
  ? {
128
128
  typeOptions: [types.getOptionForType('object')], schemaObjects: undefined
129
129
  }