(schema: JSONSchema7 | null | undefined)
| 619 | |
| 620 | /** Returns true when a JSON Schema node is marked as deprecated. */ |
| 621 | export function isSchemaDeprecated(schema: JSONSchema7 | null | undefined): boolean { |
| 622 | return typeof schema === "object" && schema !== null && (schema as Record<string, unknown>).deprecated === true; |
| 623 | } |
| 624 | |
| 625 | /** Returns true when a JSON Schema node is marked as experimental. */ |
| 626 | export function isSchemaExperimental(schema: JSONSchema7 | null | undefined): boolean { |
no outgoing calls
no test coverage detected
searching dependent graphs…