22 Commits

Author SHA1 Message Date
Mark Perryman
e6ceb1fc0a Generate examples with jsf (#1891)
Fixes https://github.com/spec-first/connexion/issues/1719 .

Builds on work of https://github.com/spec-first/connexion/pull/1718,
pulling in external library to provide the fake data from JSON schema.

Changes proposed in this pull request:

* Use JSF library to generate sample data for mocking APIs without
examples.
* Add this as a new extra dependency "mock"

See discussion on https://github.com/spec-first/connexion/pull/1870

---------

Co-authored-by: Robbe Sneyders <robbe.sneyders@gmail.com>
2024-03-20 22:27:14 +01:00
Robbe Sneyders
3e64fe46e9 Fix ReverseProxied middleware and add docs (#1873)
Starlette introduced some new changes to how the `root_path` is handled,
which broke our `ReverseProxied` example and test.

This PR fixes both and adds documentation on how to run behind a proxy.
2024-02-11 22:19:37 +01:00
Ruwann
0ae9ba811a Bugfix/starlette root path (#1833)
Fixes the change in behaviour in starlette v0.33 via PR
[#2352](https://github.com/encode/starlette/pull/2352)
2023-12-29 14:52:05 +01:00
Robbe Sneyders
dbca0485f1 Set starlette upperbound version to <0.33 (#1828)
Temporary fix for https://github.com/spec-first/connexion/issues/1826

We should release this asap.
2023-12-06 11:57:06 +01:00
Robbe Sneyders
165a91511b Fix multiple file upload (#1813)
Fixes #1806
Fixes #1811
2023-11-19 22:55:40 +01:00
Robbe Sneyders
0772056e68 Convert README from rst to md (#1772)
rst lacks different features on both Github and PyPI, making it
difficult to build an rst README that will be rendered well on both.
[The release pipeline was failing due to
this.](https://github.com/spec-first/connexion/actions/runs/6724758517/job/18277703972)
2023-11-01 23:10:20 +01:00
Robbe Sneyders
5fcda360a9 Switch back from py-swagger-ui to swagger-ui-bundle (#1756)
Tested with `swagger-ui-bundle==1.1.0` from Test PyPI.

Opening this as a draft PR, since I didn't publish `swagger-ui-bundle`
to the main PyPI yet, which I would like to do shortly before we release
Connexion 3.

Before Connexion 2.8, the `swagger_ui_bundle` version didn't have an
upper bound. So if anyone runs into any issues because of this update,
I'd rather have them come look for answers when Connexion 3 is out.
2023-11-01 21:26:56 +01:00
Robbe Sneyders
e7dc56c476 Add new authors' copyright notice (#1770)
This PR adds a copyright notice for the new authors / maintainers of
connexion. It also reformats the license / notice files as prescribed by
the license.
2023-11-01 20:31:59 +01:00
Robbe Sneyders
cbeac6f2c1 Update security docs (#1764)
Contributes to #1531
2023-10-31 20:08:04 +01:00
Robbe Sneyders
4556779343 Fix CLI and drop click dependency (#1762) 2023-10-29 11:34:55 +01:00
Robbe Sneyders
a210917b46 Drop Python 3.7 in favor of 3.11 and 3.12 (#1752)
Python 3.7 is end of life. We should support the newer versions instead.

I also changed tox to only run against the minimum dependency versions
on the lowest Python version, since this should lead to the lowest
versions over all Python versions, and hopefully helps speed up our
pipelines :)
2023-10-23 23:11:06 +02:00
Robbe Sneyders
649c7ec75e Bump starlette (#1734)
Fixes https://github.com/spec-first/connexion/issues/1728
2023-10-06 15:46:03 +02:00
Ruwann
3fa9f3bf3d Bugfix/basepath (#1716)
Working towards #1709 

I think we're almost there, some tests I did are now working properly.

Would love to get some feedback/ideas on the implementation and the
tests :)
2023-07-01 11:08:21 +02:00
Robbe Sneyders
0c0c517cf6 Update quickstart documentation (#1701)
Contributes towards #1531

Updates the quickstart documentation for v3. I removed some more
detailed stuff that I don't think belongs on this page.
2023-05-09 22:22:52 +02:00
Marcin Lulek
fc1f0df05d Move from caret to inequality requirements (#1704)
Fixes # .
I want to use connexion with newer Starlette


Changes proposed in this pull request:

 - Loosen requirements on starlette version

---------

Co-authored-by: Robbe Sneyders <robbe.sneyders@ml6.eu>
2023-05-09 20:24:29 +02:00
Robbe Sneyders
cd64611747 Add explicit asgiref dependency (#1667)
We use `asgiref` as a direct dependency

ab94e2aaa6/connexion/decorators/main.py (L7)

So should add it explicitly as well.

This issue is hidden in our tests since we install all extras. To
prevent this, we need to address
https://github.com/spec-first/connexion/issues/1389.
2023-03-06 22:19:13 +01:00
Robbe Sneyders
db78b68062 Fix and extend v3 documentation (#1664) 2023-03-06 20:01:46 +01:00
Robbe Sneyders
7b7a57475b Bump a2wsgi and drop monkeypatch 2023-02-20 09:37:28 +01:00
Ruwann
e7d3ebe53f Bump starlette version (#1641)
Addresses
https://github.com/encode/starlette/security/advisories/GHSA-74m5-2c7w-9w3x
2023-02-17 09:02:28 +01:00
Robbe Sneyders
65bc8b9138 Leverage Starlette TestClient for both FlaskApp and AsyncApp tests 2023-02-15 00:48:40 +01:00
Robbe Sneyders
83e65fcae5 Bump httpx version to 0.23 to mitigate GHSA-h8pj-cxx2-jfg2 (#1632)
Fixes https://github.com/spec-first/connexion/security/dependabot/1
2023-02-11 17:16:49 +01:00
Robbe Sneyders
15e985e864 Introduce poetry (#1628) 2023-02-07 20:17:38 +01:00