Files
connexion/examples/sqlalchemy
Robbe Sneyders 1211d1b655 Enable enforcing defaults (#1616)
This PR is a proposal to enforce defaults in json bodies.

The standard JsonRequestBodyValidator does not adapt the body. Instead, I added a DefaultsJsonRequestBodyValidator which does. The user can easily activate enforcing default by passing this Validator in a validator_map.

I would have liked connexion to have an enforce_defaults flag, but it would be hard to make this compatible with the validator_map argument.
2023-01-26 15:08:27 +01:00
..
2023-01-26 15:08:27 +01:00

==================
SQLAlchemy Example
==================

A simple example of how one might use SQLAlchemy as a backing store for a 
Connexion based application.

Running:

.. code-block:: bash

    $ pip install -r requirements.txt
    $ python app.py

Now open your browser and go to http://localhost:8080/ui/ to see the Swagger UI.