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

check for repeated logical subtype names #3500 #3501

Merged
merged 1 commit into from
Aug 2, 2022

Conversation

ancane
Copy link
Contributor

@ancane ancane commented May 29, 2022

PR for #3500

Please, ping me if test coverage

@@ -621,14 +621,47 @@ public List<NamedType> findSubtypes(Annotated a)
JsonSubTypes t = _findAnnotation(a, JsonSubTypes.class);
if (t == null) return null;
JsonSubTypes.Type[] types = t.value();

if (t.allowRepeatedNames()) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is this defined?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah. Never mind. There was the matching annotations PR.

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