()
| 21 | let ajvInstance: Ajv2020 | undefined; |
| 22 | |
| 23 | const getAjv = (): Ajv2020 => { |
| 24 | if (ajvInstance === undefined) { |
| 25 | ajvInstance = new Ajv2020({ |
| 26 | allErrors: true, |
| 27 | strict: false, |
| 28 | validateSchema: false, |
| 29 | allowUnionTypes: true, |
| 30 | }); |
| 31 | addFormats(ajvInstance); |
| 32 | } |
| 33 | return ajvInstance; |
| 34 | }; |
| 35 | |
| 36 | const decodePointerSegment = (segment: string): PropertyKey => { |
| 37 | const decoded = segment.replaceAll("~1", "/").replaceAll("~0", "~"); |
no outgoing calls
no test coverage detected