ljmotta commented on issue #1019:
URL: 
https://github.com/apache/incubator-kie-issues/issues/1019#issuecomment-2075732629

   Regarding item 2:
   >ItemDefiniton with typeRef to another custom ItemDefinition. This custom 
ItemDefinition can also use allowedValues and typeConstraint or itemComponents 
freely.
   
   An ItemDefinition with `typeRef` cannot have `itemComponents`.
   
   From the spec:
   ```
   An ItemDefinition element SHALL be defined using only one of the alternative 
ways:
   • reference to a built-in or imported typeRef, possibly restricted with 
allowedValues;
   • composition of ItemDefinition elements
   • function signature element. 
   ```
   
   Now, regarding the `An ItemDefinition element may restrict the values that 
are allowed from typeRef, using the allowedValues attribute.`. It isn't 
specified if this applies to built-in types, complex types, or both, giving 
that, I could enable the constraint to all cases. But as we previously 
discussed, we need to understand if this will work on the engine side or if 
this will not land for the next release.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to