Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JsonTextMessageValidator should ignore order of json array items #1101

Closed
novarx opened this issue Jan 18, 2024 · 1 comment
Closed

JsonTextMessageValidator should ignore order of json array items #1101

novarx opened this issue Jan 18, 2024 · 1 comment

Comments

@novarx
Copy link

novarx commented Jan 18, 2024

Citrus Version

4.1.0

Context

JsonTextMessageValidator#validateMessage

Expected behavior

The validation of a given json array, compared to a control json, should ignore the order of array items.
i.e. the follwing "recived-json"

{ "books": ["book-c", "book-b", "book-a"] }

should throw no ValidationException when compared with the follwing "control-json"

{ "books": ["book-a", "book-b", "book-c"] }

Actual behavior

The item ordering is always asserted, even when not in strict mode.

Test case sample

See Pull Request (#1102)

@bbortt
Copy link
Collaborator

bbortt commented Jan 22, 2024

fixed in #1102.

@bbortt bbortt closed this as completed Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants