]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commit
✨ Add support for OpenAPI servers metadata (#1547)
authormikaello <2505178+mikaello@users.noreply.github.com>
Sun, 14 Jun 2020 13:38:29 +0000 (15:38 +0200)
committerGitHub <noreply@github.com>
Sun, 14 Jun 2020 13:38:29 +0000 (15:38 +0200)
commitb591de2ace297c1da537e50f64b4066f96553247
tree61b47f7d6a1b3b50fe37d96f7d6fed0819694f67
parent34c857b7cb493fa41f296c001234bc6b2ed6a083
✨ Add support for OpenAPI servers metadata (#1547)

* feat: add servers option for OpenAPI

Closes #872

* ✨ Use dicts for OpenAPI servers

* ♻️ Update OpenAPI Server model to support relative URLs

* ✅ Add tests for OpenAPI servers

* ♻️ Re-order parameter location of servers for OpenAPI

* 🎨 Format code

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
fastapi/applications.py
fastapi/openapi/models.py
fastapi/openapi/utils.py
tests/test_openapi_servers.py [new file with mode: 0644]