-
Notifications
You must be signed in to change notification settings - Fork 50
Generator rejected this profile with IllegalStateException
#1520
Comments
I think one possible reason for the Generator to fail is that in the profile, there are more than one pairwise relationships for the same field. The Generator accepts these other two simpler profiles, which do not have more than one pairwise relationships: pairwiseNumberEqualTo-profile2a.json.txt |
This is not unexpected behaviour. This json provided contains contradictory constraints, which are not present in the other two valid jsons, and this is thrown as an exception in If the message is the issue (i.e not particularly helpful to the user), then I would agree as it isn't technically an exception since it is valid domain flow. We should agree an approach to this further within a group discussion. |
…ion and custom message
@cdowding-sl -- Let's have a discussion face to face. The profile may not actually be contradictory. Thanks! |
This profile is not contradictory and is therefore failing unexpectedly. |
Thanks! |
Blocked by #1489 |
Copy of #1489 |
Bug Report
Steps to Reproduce:
IllegalStateException
(see below)Expected Result:
I expect Generator to accept the profile
Actual Result:
Got the following error:
Environment:
Build of
v1.30.0
(dated Nov 1, SHA5:633cf64c9a3eb496585e102f832b1efc100e1ff9
)Additional Context:
The generator accept other simplier profiles (I can share those if interested)
The GitHub UI does not allow me directly attached a
.json
file, so I renamed it to.json.txt
pairwiseNumberEqualTo-profile2.json.txt
The text was updated successfully, but these errors were encountered: