You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9c555fd
Browse filesBrowse the repository at this point in the historyBrowse files
Fix discriminator validation for simple type mappings (#95)
* Issue #94 Fix discriminator validation for simple type mappings
- Added special-case handling in pushChildFrames to skip pushing variant schema
when the discriminator object contains only the discriminator key
- This fixes validation failures when the discriminator maps to simple types like boolean
- Preserves RFC 8927 semantics while handling property-test conventions
- Test case testDiscriminatorInElementsSchema now passes
The fix addresses the bug where discriminator objects like {alpha:type1}
were incorrectly validated against simple type schemas like {type:boolean},
causing "expected boolean, got JsonObjectImpl" errors.
* Update CI test count and add PR creation instructions
- Updated CI test count from 464 to 465 to reflect new discriminator test
- Added instructions for creating PRs with GitHub CLI to AGENTS.md
- Includes guidance on avoiding special characters in titles and using body-file flag
0 commit comments