Project: mule
Issue MULE-8505: XSD Generator creates wrong attribute types for numeric parameters
h2. Size validator has int parameters for min and max values but the generated XSD creates attributes with Long data type. {code:xml} Specify which configuration to use for this invocation. {code} {code} /** * Validates that {@code value} has a size between certain inclusive boundaries. This * validator is capable of handling instances of {@link String}, {@link Collection}, * {@link Map} and arrays * * @param value the value to validate * @param min the minimum expected length (inclusive, defaults to zero) * @param max the maximum expected length (inclusive). Leave unspecified or {@code null} to allow any max length * @param options the {@link ValidationOptions} * @param event the current {@link MuleEvent */ @Operation public void validateSize(Object value, @Optional(defaultValue = "0") int min, @Optional Integer max, @ParameterGroup ValidationOptions options, MuleEvent event) throws Exception { ValidationContext context = createContext(options, event); validateWith(new SizeValidator(value, min, max, context), context, event); } {code} h2. expressionObject is generated for java.lang.Long parameters in isLong validator {code:xml} Specify which configuration to use for this invocation. {code}
Story points: 3