Skip to content

fix(event-handler): operation tags are now string to correct schema generation #3528

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

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

rubenfonseca
Copy link
Contributor

@rubenfonseca rubenfonseca commented Dec 18, 2023

Issue number: #3520

Summary

Changes

Please provide a summary of what's being changed

This PR fixes an issue with spec compliance when generating operation tags.

User experience

Please share what the user experience looks like before and after this change

Before this PR, our OpenAPI generation was generating opeation tags as dictionaries, similar to the Tag Object. However, in the context of an Operation, this is wrong, as tags should just be a list of strings.

image

This was causing any OpenAPI schema validation to fail. This PR fixes this.

Checklist

If your change doesn't seem to apply, please leave them unchecked.

Is this a breaking change?

RFC issue number:

Checklist:

  • Migration process documented
  • Implement warnings (if it can live side by side)

Acknowledgment

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

@rubenfonseca rubenfonseca requested a review from a team December 18, 2023 13:23
@pull-request-size pull-request-size bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Dec 18, 2023
Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (8573c28) 95.78% compared to head (3832465) 95.70%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3528      +/-   ##
===========================================
- Coverage    95.78%   95.70%   -0.09%     
===========================================
  Files          210      210              
  Lines         9681     9681              
  Branches      1774     1773       -1     
===========================================
- Hits          9273     9265       -8     
- Misses         294      298       +4     
- Partials       114      118       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rubenfonseca rubenfonseca merged commit 926ff86 into develop Dec 18, 2023
@rubenfonseca rubenfonseca deleted the rf/fix-openapi-tags branch December 18, 2023 14:00
@heitorlessa heitorlessa changed the title fix(event-handler): fix operation tags schema generation fix(event-handler): operation tags are now string to correct schema generation Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
event_handlers size/S Denotes a PR that changes 10-29 lines, ignoring generated files. tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: openAPI json spec generation - path tags validation failure - property type must be string
3 participants