Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-1568

elytron-client-1.1.xsd xsd:all minOccurs="0"

    XMLWordPrintable

Details

    Description

      I am getting error in my IDE during xml validation

      • cvc-complex-type.2.4.b: The content of element 'providers' is not complete. One of '{"urn:elytron:client:1.1":global}' is expected.
        

        While having this snippet in my wildfly-config.xml

        wildfly-config.xml
        <providers>
            <use-service-loader/>
        </providers>
        
      • cvc-complex-type.2.4.b: The content of element 'configuration' is not complete. One of '{"urn:elytron:client:
         1.1":set-host, "urn:elytron:client:1.1":set-port, "urn:elytron:client:1.1":set-protocol, "urn:elytron:client:
         1.1":abstract-user-spec, "urn:elytron:client:1.1":set-mechanism-realm, "urn:elytron:client:1.1":rewrite-user-
         name-regex, "urn:elytron:client:1.1":set-mechanism-properties, "urn:elytron:client:1.1":set-authorization-
         name, "urn:elytron:client:1.1":abstract-sasl-factories}' is expected.
        

        While having this snippet in my wildfly-config.xml

        wildfly-config.xml
            <configuration name="default">
                <sasl-mechanism-selector selector="EXTERNAL"/>
                <credentials>
                    <key-store-reference key-store-name="keystore">
                        <key-store-clear-password password="${password}"/>
                    </key-store-reference>
                </credentials>
                <providers>
                    <use-service-loader/>
                </providers>
            </configuration>
        

      Based on [1] I think elements in xsd:all should contain minOccurs="0" explicitly. E.g. <xsd:element ref="abstract-user-spec" minOccurs="0"/>.

      I see this problem in providers-type and authentication-configuration-type , key-pair-type and certificate-type

      [1] https://www.w3schools.com/xml/el_all.asp

      Attachments

        Activity

          People

            jkalina@redhat.com Jan Kalina (Inactive)
            mchoma@redhat.com Martin Choma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: