21 Commits

Author SHA1 Message Date
jar3b
16ba8caa5b fix: reapply raise_validation_errors parameter to setup() 2020-12-03 21:07:50 +03:00
jar3b
53357214a8 feat: add raise_validation_errors parameter to setup()
To control how pydantic.ValidationError will be handled, own handler (return json) or raise exception to allow intercept in aiohttp middleware
2020-12-03 21:06:10 +03:00
jar3b
cdcd526fb4 fix: detect x-forwarded-proto if deployed behind proxy
For static files handling, was set up in "oas_ui()"
2020-12-03 21:05:08 +03:00
Vincent Maillol
25fcac18ec Fix wrong link in OAS components with nested pydantic.BaseModel 2020-11-28 19:46:36 +01:00
Vincent Maillol
f2b16a46b5 Update version 1.6.0 2020-11-28 12:42:06 +01:00
Vincent Maillol
c4c18ee4a1 increase pydantic integration with headers, query string and url path 2020-11-28 12:39:50 +01:00
Vincent Maillol
a6d96d711b Update version 1.5.1 2020-11-21 18:07:04 +01:00
Vincent Maillol
462d8d8b98 Fix bug query string appear as required in generated Open API specification. 2020-11-21 17:23:01 +01:00
Vincent Maillol
0d3a33c964 Update version 1.5.0 2020-11-15 14:41:11 +01:00
Vincent Maillol
913f50298c Use docstring of handler in the OAS description 2020-11-14 20:33:55 +01:00
Vincent Maillol
03854cf939 Update version 1.4.1 2020-11-03 13:14:16 +01:00
Vincent Maillol
2db23d3328 PydanticView returns 400 if the request payload is not JSON 2020-11-03 13:10:44 +01:00
Vincent Maillol
d866ce5358 fix bug we cannot use optional params 2020-11-03 12:54:28 +01:00
Vincent Maillol
e4b23398b8 Update version 1.4.0 2020-11-01 19:45:05 +01:00
Vincent Maillol
cda4fba4c2 Add a command line tool to generate OAS in a file 2020-11-01 14:35:41 +01:00
Vincent Maillol
236374240e Update version to 1.3.0 2020-10-30 19:14:21 +01:00
Vincent Maillol
62d871fb5c Add type to define OAS responses 2020-10-30 16:05:04 +01:00
Vincent Maillol
d6b5fc26f3 Add sub-app to generate open api spec 2020-10-25 20:28:11 +01:00
Vincent Maillol
b37c03e9d9 parse path and header 2020-10-10 16:01:35 +02:00
Vincent Maillol
cc0cbfbb5e add HTTP header parsing 2020-10-04 20:55:13 +02:00
Vincent Maillol
97ede771d2 Create aiohttp_pydantic 2020-10-04 12:42:58 +02:00