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

Implement Extensible.hasExtension #2166

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Azquelt
Copy link
Contributor

@Azquelt Azquelt commented Jan 21, 2025

Implementing microprofile/microprofile-open-api#666, Extensible.getExtension already has an implementation.

Allow hasExtension and getExtension to handle internal extensions, as addExtension and removeExtension do. This means that they're not exactly equivalent to getExtensions().hasKey and getExtensions().get.

I think the tests added to the TCK are sufficient here.

Left in draft because it requires an update to a snapshot version of the spec, or the removal of @Override. I'm happy to remove the @Override annotations, unless we're going to update to a snapshot version anyway for #2163.

Extensible.getExtension already has an implementation.

Allow hasExtension and getExtension to handle internal extensions, as
addExtension and removeExtension do. This means that they're not exactly
equivalent to getExtensions().hasKey and getExtensions().get.
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

Successfully merging this pull request may close these issues.

2 participants