-
-
Notifications
You must be signed in to change notification settings - Fork 348
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
fix(core): only generate one operation if it has multiple tags #1812
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: Shodai Suzuki <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AllieJonsson
Thanks for the handle on this.
As suggested in the original issue, how about just using the first tag?
That way, we can control the cases where multiple tags occur by inputting OpenAPI
.
Pet: | ||
type: object | ||
oneOf: | ||
- $ref: '#/components/schemas/Dog' | ||
- $ref: '#/components/schemas/Cat' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is also an unnecessary definition 👍
Yes, if the user does not set a function for this setting, then the first tag will be used. Do you think this setting is unnecessary? I think the issue stated it would be nice to have |
@AllieJonsson |
Status
READY
Description
Fixes #1677
Todos