(schema: JSONSchema7 | null | undefined)
| 896 | * is rejected by the runtime's schema lint pass. |
| 897 | */ |
| 898 | export function isOpaqueJson(schema: JSONSchema7 | null | undefined): boolean { |
| 899 | return typeof schema === "object" && schema !== null && (schema as Record<string, unknown>)["x-opaque-json"] === true; |
| 900 | } |
| 901 | |
| 902 | /** |
| 903 | * Removes the `x-opaque-json` marker from a schema node in place. Useful for |
no outgoing calls
no test coverage detected
searching dependent graphs…