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

Comments

OpenAPI schema generation: Don't convert all enums into str#906

Merged
tiangolo merged 2 commits intofastapi:masterfrom
songzhi:patch-1
Feb 4, 2020
Merged

OpenAPI schema generation: Don't convert all enums into str#906
tiangolo merged 2 commits intofastapi:masterfrom
songzhi:patch-1

Conversation

@songzhi
Copy link
Contributor

Before doing this,the type of values inenum could be at odds withtype field.

Before doing this,the type of  values in `enum` could be at odds with `type` field.
@codecov
Copy link

codecovbot commentedJan 22, 2020
edited
Loading

Codecov Report

Merging#906 intomaster willdecrease coverage by0.07%.
The diff coverage is100%.

Impacted file tree graph

@@            Coverage Diff             @@##           master     #906      +/-   ##==========================================- Coverage     100%   99.92%   -0.08%==========================================  Files         293      293                Lines        7692     7701       +9     ==========================================+ Hits         7692     7695       +3- Misses          0        6       +6
Impacted FilesCoverage Δ
fastapi/openapi/models.py100% <100%> (ø)⬆️
fastapi/concurrency.py77.77% <0%> (-22.23%)⬇️
tests/test_filter_pydantic_sub_model.py100% <0%> (ø)⬆️
fastapi/utils.py100% <0%> (ø)⬆️

Continue to review full report at Codecov.

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

@songzhisongzhi changed the titleDon't convert all enums into strOpenAPI schema generation: Don't convert all enums into strJan 23, 2020
@tiangolotiangolo merged commita448bd6 intofastapi:masterFeb 4, 2020
@tiangolo
Copy link
Member

Thanks! Good point 🔍 🚀 I updated it to allow any type as subtype ofList.

Thanks for your contribution! 🍰

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.

2 participants

@songzhi@tiangolo

[8]ページ先頭

©2009-2026 Movatter.jp