bauerji / flask-pydantic

flask extension for integration with the awesome pydantic package
MIT License
368 stars 58 forks source link

add functionality for array parameters in query #9

Closed bauerji closed 4 years ago

bauerji commented 4 years ago

Added functionality to use list fields in query params.

When using query model

class QueryMode(BaseModel):
    a: List[str]

the api call /whatever_endpoint?a=one&a=two results in request.query_params.a having the value ["one", "two"]

closes #7

sonarcloud[bot] commented 4 years ago

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication