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

Improve query functionality #1682

Merged
merged 2 commits into from
Jan 26, 2025
Merged

Improve query functionality #1682

merged 2 commits into from
Jan 26, 2025

Conversation

goekay
Copy link
Member

@goekay goekay commented Jan 26, 2025

1st commit adds a new functionality in terms of a new field to query by.

2nd commit addresses an annoyance and confusion when using swagger. apparently, another solution is setting the property springdoc.use-fqn=true. but then the class name uses the complete package name, which can be considered an unnecessary leak of impl detail.

reason: swagger UI cannot infer the proper schema, if there are overlapping inner classes
with the same name, such as:
- OcppTagQueryForm.ForApi
- TransactionQueryForm.ForApi
@goekay goekay merged commit 0290333 into master Jan 26, 2025
45 checks passed
@goekay goekay deleted the improve-query-functionality branch January 26, 2025 15:03
@juherr
Copy link
Contributor

juherr commented Jan 26, 2025

@goekay Fyi about the 2nd commit, using @Schema(name="MyDto") on the class should work too.

@goekay
Copy link
Member Author

goekay commented Jan 26, 2025

thanks, i stumbled upon that as well, but found it less robust.

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