Skip to content

feat: add xs:simpleContent with xs:extension support#8

Open
w-paheg wants to merge 1 commit into
moolekkari:masterfrom
w-paheg:master
Open

feat: add xs:simpleContent with xs:extension support#8
w-paheg wants to merge 1 commit into
moolekkari:masterfrom
w-paheg:master

Conversation

@w-paheg
Copy link
Copy Markdown

@w-paheg w-paheg commented Mar 6, 2026

Summary

  • Add SimpleContent and Extension structs to ComplexType for parsing xs:simpleContent > xs:extension
  • Validate text content against the extension's base type (built-in or named simple type) and validate extension attributes
  • Fix findSimpleType to not error when a type resolves to a ComplexType (e.g. one with simpleContent)
  • Add totalDigits and fractionDigits facet support to Restriction
  • Add pain.001.001.09 XSD as test fixture

Checklist

  • Tests added / updated
  • go vet and go test pass
  • CHANGELOG.md updated (if user-visible)

Adds parsing and validation for complexTypes with simpleContent/extension,
enabling schemas like pain.001.001.09. Also adds totalDigits/fractionDigits
facet validation.
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.

1 participant