Incorrect aura.xsd for <aura:set> tag
Issue #1202
resolved
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.
This should be fine as those attributes' type is String.
Looking at the aura.xsd, it seems the <xsd:attribute name="value" type="accessEnum"/> should have a type of "xsd:string".
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)
-
repo owner -
reporter Thanks, Scott!
-
repo owner - changed status to resolved
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. -
reporter Thanks!
-
repo owner - changed component to Aura
- Log in to comment
Thanks for reporting, Doug. That's just a copy/paste error. Fix submitted for the next build.