Project: mule
Issue MULE-8466: Generated XSD defines restriction groups by extension
When an operation takes NestedProcessors as an argument, the @RestrictedTo annotation can be used to limit the acceptable message processors to a given substitution group. However, what the XSD generator is doing is to create a group which lists all of the operations in the given restriction type. Because that group is fixed, it doesn't allow to externally contribute more elements with the same substitution group. What the generator should do is to define a group which has a reference to the substitutionGroup and thus allowing variable elements which meet the restriction
Story points: 1