Skip to content

Type casting failures #2

@silverdr

Description

@silverdr

Using the attached XSD schema I get all values returned as strings, including those defined as xs:int or xs:date. This may have something to do with xs:restriction, although date conversion doesn't seem to work even w/o xs:restriction:

  • Direct int (type="xs:int"): 42 ✅ integer
  • Restricted int (<xs:restriction base="xs:int">): "99" ❌ string
  • Direct date (type="xs:date"): "2023-01-01" ❌ string
  • Restricted date (<xs:restriction base="xs:date">): "2023-12-25" ❌ string

DaneSzukajPodmioty.xsd.txt

Test files:

test_restriction.xsd.txt

test_restriction.xml.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions