JiBX
  1. JiBX
  2. JIBX-374

<xs:restriction> for simpleType with no base='...' attribute reports an error in the schema

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JiBX 1.2.2
    • Fix Version/s: JiBX 1.2.3
    • Component/s: CodeGen
    • Labels:
      None
    • Number of attachments :
      0

      Description

      The JiBX schema validation incorrectly requires a base value for simpleType restriction. Schema allows a nested base type definition as an alternative to the base attribute.

      This problem is demonstrated by ws-bpel_executable.xsd, which has several definitions on this type:

      <xsd:simpleType name="QNames">
      <xsd:restriction>
      <xsd:simpleType>
      <xsd:list itemType="xsd:QName"/>
      </xsd:simpleType>
      <xsd:minLength value="1"/>
      </xsd:restriction>
      </xsd:simpleType>

        Activity

        Hide
        Dennis Sosnoski added a comment -

        Fixed in current CVS code.

        Show
        Dennis Sosnoski added a comment - Fixed in current CVS code.
        Dennis Sosnoski made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s JiBX 1.2.3 [ 16349 ]
        Resolution Fixed [ 1 ]
        Hide
        Dennis Sosnoski added a comment -

        Too quick to resolve, I see the inline base type definition is no longer causing an exception but is also not reflected in the generated data model.

        Show
        Dennis Sosnoski added a comment - Too quick to resolve, I see the inline base type definition is no longer causing an exception but is also not reflected in the generated data model.
        Dennis Sosnoski made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Hide
        Dennis Sosnoski added a comment -

        Corrected and verified.

        Show
        Dennis Sosnoski added a comment - Corrected and verified.
        Dennis Sosnoski made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Dennis Sosnoski made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Dennis Sosnoski
            Reporter:
            Dennis Sosnoski
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: