in src/lib/util/utils.ts [484:503]
export function isPureObject(model: Model) {
if (!model) {
throw new Error(`model cannot be null or undefined and must be of type "object"`)
}
if (
model.type &&
typeof model.type.valueOf() === "string" &&
model.type === "object" &&
model.properties &&
Object.keys(model.properties).length === 0
) {
return true
} else if (!model.type && model.properties && Object.keys(model.properties).length === 0) {
return true
} else if (model.type && typeof model.type.valueOf() === "string" && model.type === "object" && !model.properties) {
return true
} else {
return false
}
}