(schemaDef)
| 27 | } |
| 28 | |
| 29 | function isObjectSchema(schemaDef) { |
| 30 | return ( |
| 31 | !!schemaDef && |
| 32 | typeof schemaDef === "object" && |
| 33 | (schemaDef.type === "object" || |
| 34 | !!schemaDef.properties || |
| 35 | Array.isArray(schemaDef.allOf) || |
| 36 | Array.isArray(schemaDef.oneOf)) |
| 37 | ); |
| 38 | } |
| 39 | |
| 40 | function mergeObjectShape(schemaDef, mergedProperties, mergedRequired, options) { |
| 41 | if (!isObjectSchema(schemaDef)) { |