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

✨ Do not allow duplicate tag names in the OpenAPI metadata (OpenAPI object) #5553

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

aradipe
Copy link

@aradipe aradipe commented Oct 28, 2022

Addresses issue #5552

@codecov
Copy link

codecov bot commented Oct 28, 2022

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (cf73051) 100.00% compared to head (68dd7f6) 100.00%.
Report is 1072 commits behind head on master.

❗ Current head 68dd7f6 differs from pull request most recent head 68dba62. Consider uploading reports for the commit 68dba62 to get more accurate results

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #5553   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          540       541    +1     
  Lines        13969     13963    -6     
=========================================
- Hits         13969     13963    -6     

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

@github-actions
Copy link
Contributor

📝 Docs preview for commit e3a9696 at: https://635baffd10db8521b195f853--fastapi.netlify.app

@aradipe
Copy link
Author

aradipe commented Oct 28, 2022

Failing because of an issue already addressed in PR #5547

@@ -400,6 +400,14 @@ class OpenAPI(BaseModel):
class Config:
extra = "allow"

@validator("tags")
def check_foo(cls, v): # type: ignore
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

Sorry about that, that was a lazy copy-paste error from the pydantic docs :) fixed

@JarroVGIT
Copy link
Contributor

JarroVGIT commented Oct 28, 2022

Nice catch @aradipe ! Thanks for creating a PR for it!

@github-actions
Copy link
Contributor

📝 Docs preview for commit f7c318c at: https://635c3a0a12f8e340e6979ffe--fastapi.netlify.app

@github-actions
Copy link
Contributor

📝 Docs preview for commit 68dd7f6 at: https://635ff79a0ea6b9005760c57a--fastapi.netlify.app

@tiangolo tiangolo changed the title Do not allow duplicate tag names (OpenAPI object) ✨ Do not allow duplicate tag names in the OpenAPI metadata (OpenAPI object) Oct 31, 2022
@github-actions
Copy link
Contributor

📝 Docs preview for commit 4b4f6ab at: https://639cc80bb5df5c0d4c670358--fastapi.netlify.app

@github-actions
Copy link
Contributor

github-actions bot commented May 6, 2023

📝 Docs preview for commit 68dba62 at: https://6456a319e9789a56b7fa4f50--fastapi.netlify.app

@alejsdev alejsdev added p3 feature New feature or request and removed hacktoberfest-accepted investigate labels Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request p3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants