You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2014/01/04 09:56:50 UTC

[jira] [Updated] (CAMEL-7094) Wrong type definition in camel-spring.xsd

     [ https://issues.apache.org/jira/browse/CAMEL-7094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-7094:
-------------------------------

    Fix Version/s: 3.0.0

The schema is auto generated and JAXB has a problem when there is multiple classes with the same type name (eg "property"). So we will look into this in Camel 3.0 where the schema can be adjusted.

The <properties> still work fine, for end users, if they set the tags as documented.

> Wrong <property /> type definition in camel-spring.xsd
> ------------------------------------------------------
>
>                 Key: CAMEL-7094
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7094
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-blueprint, camel-spring
>    Affects Versions: 2.12.2
>            Reporter: Kirill Vergun
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 3.0.0
>
>
> It defines *<property />* as following:
> {code:xml}
> <xs:element name="property" nillable="true" type="xs:anyType"/>
> {code}
> via
> {code:xml}
> <xs:complexType name="propertiesDefinition">
>   <xs:sequence>
>     <xs:element ref="tns:property" minOccurs="0" maxOccurs="unbounded"/>
>   </xs:sequence>
> </xs:complexType>
> {code}
> but I believe that it should be a link to the existing
> {code:xml}
> <xs:complexType name="propertyDefinition">
>   <xs:sequence/>
>   <xs:attribute name="key" type="xs:string" use="required"/>
>   <xs:attribute name="value" type="xs:string" use="required"/>
> </xs:complexType>
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)