Incorrect aura.xsd for <aura:set> tag

Issue #1202 resolved
Doug Ayers created an issue

When using the <aura:set> tag to set an attribute on a component, for example <aura:set attribute="foo" value="bar"/>, IC2 complains that a text value is of the wrong type.

aura-set-cmp.png

This should be fine as those attributes' type is String.

aura-set-attr.png

Looking at the aura.xsd, it seems the <xsd:attribute name="value" type="accessEnum"/> should have a type of "xsd:string".

aura-set-xsd.png

I think the aura.xsd for <aura:set> tag should be:

    <xsd:element name="set">
        <xsd:complexType>
            <xsd:sequence>
                <xsd:any/>
            </xsd:sequence>
            <xsd:attribute name="attribute" type="xsd:string"/>
            <xsd:attribute name="type" type="xsd:string"/>
            <xsd:attribute name="value" type="xsd:string"/>
            <xsd:attribute name="default" type="xsd:string"/>
        </xsd:complexType>
    </xsd:element>

Thanks

Comments (5)

  1. Scott Wells repo owner

    Thanks for reporting, Doug. That's just a copy/paste error. Fix submitted for the next build.

  2. Scott Wells repo owner

    Delivered in 1.8.4.4 and 2.0.4.9. Note that you may need to ctrl+click into aura.xsd to force the IDE to update its XSD cache before you will see the change.

  3. Log in to comment