GitHub
06/13/2025, 3:18 AMnormalize keyword-only argument to singer_sdk.singerlib.resolve_schema_references to naively normalize oneOf, allOf and anyOf keywords
Pull request opened by edgarrmondragon
## Links
• https://json-schema.org/understanding-json-schema/reference/combining
## Summary by Sourcery
Introduce a normalize option in resolve_schema_references to naively flatten single-element oneOf/allOf/anyOf subschemas, add 'not' keyword resolution support, and update tests to use a parameter object with normalization scenarios.
New Features:
• Add normalize keyword-only argument to resolve_schema_references to enable optional schema normalization
Enhancements:
• Implement normalization helpers to flatten oneOf/allOf/anyOf when they contain a single subschema
• Add support for resolving the 'not' JSON Schema keyword
Tests:
• Refactor tests to use a dataclass for passing schema, refs, and normalize flag
• Add a test case for normalizing single-element composition schemas
meltano/sdk