TestBoxLab / chalice-spec

Chalice x APISpec x Pydantic plug-ins
MIT License
17 stars 7 forks source link

Add support for content types #15

Closed philippeauriach closed 1 year ago

philippeauriach commented 1 year ago

Content-types can be specified when defining chalice routes:

@app.route("/posts", methods=["POST"], content_types=["multipart/form-data"], docs=Docs(request=TestSchema, response=AnotherSchema))

@blueprint.route("/path", methods=["POST"], content_types=["multipart/form-data"])

This PR adds support for them, defining them in the specs requestBody.