MCPcopy Create free account
hub / github.com/bytebase/bytebase / isObjectSchema

Function isObjectSchema

frontend/scripts/generate_openapi_index.js:29–38  ·  view source on GitHub ↗
(schemaDef)

Source from the content-addressed store, hash-verified

27}
28
29function 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
40function mergeObjectShape(schemaDef, mergedProperties, mergedRequired, options) {
41 if (!isObjectSchema(schemaDef)) {

Callers 1

mergeObjectShapeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected