Hi guys, I'm just wondering if there are any technical reasons why a RouteDefinition is allowed zero to unbounded occurrences of the `from` element;
>From the Schema for camel 2.10.0 - <xs:complexType name="routeDefinition"> <xs:complexContent> <xs:extension base="tns:processorDefinition"> <xs:sequence> <xs:element ref="tns:from" minOccurs="0" maxOccurs="unbounded"/> <xs:choice minOccurs="0" maxOccurs="unbounded"> ...... </xs:choice> </xs:sequence> ...... </xs:extension> </xs:complexContent> </xs:complexType> We can see from the generated Schema that we are allowed a route that looks like the following : <route> <log message="Hello World" /> </route> But we will receive the following error if we try to run it java.lang.IllegalArgumentException: Route has no inputs: Route[[] -> [Log[hello World]]] IE, can we add a required = true annotation to force a min-occurs = 1 in the generated schema, or are there technical reasons why this isn't a good idea? Cheers -- View this message in context: http://camel.465427.n5.nabble.com/Xml-schema-RouteDefinition-tp5735010.html Sent from the Camel Development mailing list archive at Nabble.com.