| Filename | Latest commit message | Latest commit date |
|---|---|---|
- 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.
|
||
| .. | ||
| __tests__ | ||
| configUtils.ts | ||
| escapeUnicode.ts | ||
| jsonUtils.ts | ||
| oauthUtils.ts | ||
| schemaUtils.ts | ||