* Recursively normalize GitHub brand casing within a parsed JSON schema: * definition-map keys, `$ref` pointers (definition-name segment only), and * documentation strings. Wire-level values (`const`, `enum`, `default`, ...) are * left untouched. Mutates in place and returns the schema.
(schema: T)
| 48 | * left untouched. Mutates in place and returns the schema. |
| 49 | */ |
| 50 | function normalizeSchemaBrandCasing<T>(schema: T): T { |
| 51 | normalizeBrandCasingNode(schema); |
| 52 | return schema; |
| 53 | } |
| 54 | |
| 55 | function normalizeBrandCasingNode(node: unknown): void { |
| 56 | if (Array.isArray(node)) { |
no test coverage detected
searching dependent graphs…