Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: check duplicates schemas when loading swagger#157

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
Marwen94 wants to merge1 commit intopython-openapi:master
base:master
Choose a base branch
Loading
fromMarwen94:check_duplicates_schemas_defs_when_loading_swagger

Conversation

Marwen94
Copy link

Closes#156

@codecov
Copy link

codecovbot commentedJun 24, 2022
edited
Loading

Codecov Report

Merging#157 (45dd535) intomaster (a29b4f9) willincrease coverage by0.12%.
The diff coverage is100.00%.

@@            Coverage Diff             @@##           master     #157      +/-   ##==========================================+ Coverage   95.97%   96.09%   +0.12%==========================================  Files          18       18                Lines         547      564      +17       Branches      103      109       +6     ==========================================+ Hits          525      542      +17  Misses         12       12                Partials       10       10
Impacted FilesCoverage Δ
openapi_spec_validator/handlers/compat.py90.90% <100.00%> (+30.90%)⬆️
openapi_spec_validator/handlers/file.py100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last updatea29b4f9...45dd535. Read thecomment docs.

@Marwen94
Copy link
Author

@p1c2u could you please have a look at this PR ?

@p1c2u
Copy link
Collaborator

Looks good. Just wondering how this affects the performance.

@Marwen94
Copy link
Author

Looks good. Just wondering how this affects the performance.

I don't think this influences a lot the performance since it only adds an o(n) complexity wheren is the number of schema in a given swagger. Imhon in a real world context is in [1, 100].

We can set the duplicate check optional also, what do you think ?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Duplicates schemas definitions are not validated
2 participants
@Marwen94@p1c2u

[8]ページ先頭

©2009-2025 Movatter.jp