feat(flow-php/etl-adapter-json): JSON Schema to Flow schema converte#2510
Merged
Conversation
- bidirectional SchemaConverter with schema_from_json_schema() / schema_to_json_schema() DSL (gh-1868) - $ref resolution: internal pointers, relative files, remote http(s) via PSR-18 client, with cycle detection - full combinator support: allOf deep merge, anyOf/oneOf as nullable or union types - annotations preserved in definition metadata (json_schema.* keys) and re-emitted on conversion back - core: UnionDefinition + union_schema() DSL so heterogeneous unions are representable in Schema - boolean schemas: true accepted and emitted for accept-anything properties, false rejected
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## 1.x #2510 +/- ##
============================================
+ Coverage 85.92% 85.97% +0.04%
- Complexity 21923 22238 +315
============================================
Files 1653 1662 +9
Lines 67687 68370 +683
============================================
+ Hits 58163 58784 +621
- Misses 9524 9586 +62 🚀 New features to boost your workflow:
|
…actory - new EntryTypeResolver picks the first union member accepting the value, falling back to the first castable one - nullable union definitions no longer crash on OptionalType wrapping - schemas with union definitions (e.g. from schema_from_json_schema()) now work with extractors via withSchema()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves: #1868
Change Log
Added
flow-php/etl-adapter-json- bidirectional JSON Schema converter withschema_from_json_schema()andschema_to_json_schema()DSL functionsflow-php/etl-adapter-json-$refresolution for internal pointers, local files and remote http(s) documents via PSR-18 client, with circular reference detectionflow-php/etl-adapter-json- combinator support:allOfdeep merge,anyOf/oneOfas nullable or union types, boolean schemasflow-php/etl-adapter-json- JSON Schema annotations preserved in definition metadata underjson_schema.*keysflow-php/etl-UnionDefinitionandunion_schema()DSL function for union type schema definitionsFixed
Changed
Removed
Deprecated
Security