(schema: JSONSchema7 | null | undefined)
| 396 | * and other non-object schemas. |
| 397 | */ |
| 398 | export function isObjectSchema(schema: JSONSchema7 | null | undefined): boolean { |
| 399 | if (!schema) return false; |
| 400 | if (schema.type === "object" && schema.properties) return true; |
| 401 | return false; |
| 402 | } |
| 403 | |
| 404 | /** |
| 405 | * Returns true if the schema represents a void/null result (type: "null"). |
no outgoing calls
no test coverage detected
searching dependent graphs…