Skip to content

[WIP] Move XSD Liquid methods from lutaml-xsd - #626

Merged
ronaldtse merged 2 commits into
mainfrom
feat/xsd-liquid-helpers
May 1, 2026
Merged

[WIP] Move XSD Liquid methods from lutaml-xsd#626
ronaldtse merged 2 commits into
mainfrom
feat/xsd-liquid-helpers

Conversation

@suleman-uzair

Copy link
Copy Markdown
Member

This PR follows up on the discussion in lutaml/lutaml-xsd#26 by moving the XSD Liquid helper support into lutaml-model, where the XSD parsing functionality now lives.

It ports the Liquid helper methods from lutaml-xsd into the Lutaml::Xml::Schema::Xsd classes and adds focused test coverage for sorting, reference resolution, and nested container traversal.

What this changes

  • adds XSD Liquid helper methods to the schema/model classes
  • supports Liquid helper-based sorting and lookup behavior
  • wires root-context lookup for cross-reference resolution
  • adds focused specs for the new helper behavior

Comment thread lib/lutaml/xml/schema/xsd/schema_path.rb Fixed
Comment thread lib/lutaml/xml/schema/xsd/schema_path.rb Fixed
ronaldtse added a commit that referenced this pull request May 1, 2026
- Move Liquid template methods from lutaml-xsd into core XSD models
- Add schema_path.rb for robust XSD schema URL/refs resolution
- Add Liquid-compatible accessors to XSD elements (attributes, base types,
  content models, attribute groups, containers, simple content)
- Harden XSD schema URL parsing with lutaml_root support
- Preserve W3C XML attribute types in XML compiler
- Add comprehensive Liquid method specs for all XSD model types
@ronaldtse
ronaldtse force-pushed the feat/xsd-liquid-helpers branch from ab4c0b1 to a196516 Compare May 1, 2026 01:44
- Move Liquid template methods from lutaml-xsd into core XSD models
- Add schema_path.rb for robust XSD schema URL/refs resolution
- Add Liquid-compatible accessors to XSD elements (attributes, base types,
  content models, attribute groups, containers, simple content)
- Harden XSD schema URL parsing with lutaml_root support
- Preserve W3C XML attribute types in XML compiler
- Add comprehensive Liquid method specs for all XSD model types
@ronaldtse
ronaldtse force-pushed the feat/xsd-liquid-helpers branch from a196516 to 47c50e4 Compare May 1, 2026 09:58
@ronaldtse
ronaldtse marked this pull request as ready for review May 1, 2026 11:09
@ronaldtse
ronaldtse merged commit 05e99b0 into main May 1, 2026
81 of 88 checks passed
ronaldtse added a commit that referenced this pull request May 1, 2026
- Move Liquid template methods from lutaml-xsd into core XSD models
- Add schema_path.rb for robust XSD schema URL/refs resolution
- Add Liquid-compatible accessors to XSD elements (attributes, base types,
  content models, attribute groups, containers, simple content)
- Harden XSD schema URL parsing with lutaml_root support
- Preserve W3C XML attribute types in XML compiler
- Add comprehensive Liquid method specs for all XSD model types
@ronaldtse
ronaldtse deleted the feat/xsd-liquid-helpers branch May 1, 2026 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants