We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2044c46 commit 98b39baCopy full SHA for 98b39ba
entrypoint.js
@@ -354,7 +354,9 @@ function parseDefaultObjectValue(rootObject, vObj) {
354
let newValue = rootObject.DataObjects.find(obj => obj.Name == vObj.Value.Value)
355
if (!newValue) newValue = rootObject.DataInputs.find(obj => obj.Name == vObj.Value.Value)
356
if (!newValue) newValue = rootObject.EnumObjects.find(obj => obj.Name == vObj.Value.Value)
357
- if (newValue.Type === "EnumObject") {
+ if (!newValue) {
358
+ throw { message: 'Cannot find any definition of this object in schema.', object: vObj }
359
+ } else if (newValue.Type === "EnumObject") {
360
vObj.Value.Default = newValue.Value[0].Value
361
vObj.Value.isEnumObject = true
362
vObj.Value.isQuotedType = true
0 commit comments