Uploaded image for project: 'MidPoint'
  1. MidPoint
  2. MID-1790

Enumeration types not supported as schema extension attributes

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0 (Newton), 3.1 (Sinan)
    • Fix Version/s: 3.1.1
    • Component/s: None
    • Git Revision:
      git-v2.3devel-1286-g4ba08e2

      Description

      We should technically support XML enumeration types, but this does not work:

      midpoint.home/schema/extension.xsd:

        <xsd:complexType name="UserExtensionType">
          <xsd:annotation>
            <xsd:appinfo>
              <a:extension ref="c:UserType"/>
            </xsd:appinfo>
          </xsd:annotation>
      
          <xsd:sequence>
            <xsd:element name="exampleUserType" minOccurs="0" type="tns:exampleUserTypeType">
              <xsd:annotation>
                <xsd:appinfo>
                  <a:indexed>false</a:indexed>
                    <a:displayName>Example User Type</a:displayName>
                    <a:displayOrder>130</a:displayOrder>
                  </xsd:appinfo>
                <xsd:documentation>
                </xsd:documentation>
              </xsd:annotation>
            </xsd:element>
          </xsd:sequence>
          </xsd:complexType>
      
      <xsd:simpleType name="exampleUserTypeType">
          <xsd:restriction base="xsd:string">
            <xsd:enumeration value="End User"/>
            <xsd:enumeration value="Administrator"/>
            <xsd:enumeration value="Power User"/>
          </xsd:restriction>
      </xsd:simpleType>
      
      

      This is syntactically correct - midPoint starts, the attribute is visible in New user page, but is displayed as Text field (no combo).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              vix Ivan Noris
              Reporter:
              vix Ivan Noris
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: