-
Notifications
You must be signed in to change notification settings - Fork 83
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
TCK Tag Collection Test contains() side effect #453
Comments
@MattGill98 , this is a good catch and I suspect the answer is not straight forward. Something worth discussing for future versions of the specification may be whether the |
@MikeEdgar
|
Fixed in Payara, ongoing discussion is here: microprofile/microprofile-open-api#453 Also depend on current Payara 5.2021.5-SNAPSHOT.
This change is required by TCK, discussion is here: microprofile/microprofile-open-api#453
This change is required by TCK, discussion is here: microprofile/microprofile-open-api#453
This line is supposed to check if a list is immutable:
https://github.com/eclipse/microprofile-open-api/blob/b7a437d9efd7ad113895ceb4ba8a1f10614fd779/tck/src/main/java/org/eclipse/microprofile/openapi/tck/ModelConstructionTest.java#L421-L422
The test method adds a few default
Tag
objects beforehand, and this one has no unique data. This means that if the OpenAPI implementation properly implementsequals()
andhashCode()
methods it will actually fail this test, as even if the list is immutable it will contain the previously added Tag (with identical fields).Is this intended behaviour?
The text was updated successfully, but these errors were encountered: