You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
❗ please do not add sensitive information in issues, you can provide extra information via email using issue number as reference ❗
Describe the issue
In an api receiver adapter you can define input query params which are validated against an xsd. The xsd element can be an enum.
If you then want to add multiple input of the same query param to do a "where in ('')" search, this input gets rejected by the json2xml validator.
Reporter
Dirk-Jan
To Reproduce
Make an api receiver adapter with input query params that are validated with a json2xml validator.
Send multiple input values
xsd element pets with enum values dog and cat
For example:
OK: GET /apicall?pets=dog
OK: GET /apicall?pets=cat
NOT OK: GET /apicall?pets=dog|cat
Value "dog|cat" gets rejected by the xsd validation.
When "pets" would be a string, then there is no issue and multiple input values with a separator work fine.
The text was updated successfully, but these errors were encountered:
I'm not surprised that the value dog|cat is rejected by the XSD validator since it's not a valid enum value. Could you try regular expression based validation instead of relying on enumerations?
To stay within the pets theme, here is a matching example:
(?:cat|dog|goldfish|hamster|parrot) matches any of the allowed pet types without capturing it. (?:\|(?:cat|dog|goldfish|hamster|parrot))* allows for zero or more occurrences of a pipe followed by any of the allowed pet types.
❗ please do not add sensitive information in issues, you can provide extra information via email using issue number as reference ❗
Describe the issue
In an api receiver adapter you can define input query params which are validated against an xsd. The xsd element can be an enum.
If you then want to add multiple input of the same query param to do a "where in ('')" search, this input gets rejected by the json2xml validator.
Reporter
Dirk-Jan
To Reproduce
xsd element pets with enum values dog and cat
For example:
OK: GET /apicall?pets=dog
OK: GET /apicall?pets=cat
NOT OK: GET /apicall?pets=dog|cat
Value "dog|cat" gets rejected by the xsd validation.
When "pets" would be a string, then there is no issue and multiple input values with a separator work fine.
The text was updated successfully, but these errors were encountered: