inspector/client/src/utils
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Alex Andru 3a121bc8fc fix: support JSON Schema spec compliant oneOf with const for labeled enums
- Make JsonSchemaType.type optional to support const-only schemas
- Add JsonSchemaConst type for schema objects using const values
- Update oneOf/anyOf to accept both full schemas and const schemas
- Add comprehensive tests for oneOf with const and title patterns

This fixes TypeScript compilation errors when using the JSON Schema
specification's recommended approach for labeled enums:
{ "type": "string", "oneOf": [{ "const": "red", "title": "Stop" }] }

Replaces deprecated enumNames pattern with spec-compliant implementation.
2025-07-04 19:39:03 +02:00
..
__tests__ fix: support JSON Schema spec compliant oneOf with const for labeled enums 2025-07-04 19:39:03 +02:00
configUtils.ts Merge branch 'main' into sebastian/patch-remove-addition-slash 2025-07-02 03:17:50 -04:00
escapeUnicode.ts chore: extract utils escapeUnicode 2025-03-22 16:25:33 +00:00
jsonUtils.ts fix: support JSON Schema spec compliant oneOf with const for labeled enums 2025-07-04 19:39:03 +02:00
oauthUtils.ts feat: QoL improvements for OAuth Callback 2025-04-07 14:58:31 -07:00
schemaUtils.ts Fix formatting 2025-06-10 21:29:08 -07:00