7a8f195712
Allow overriding of spec as a dictionary
2021-03-05 15:23:23 -05:00
3a622e0306
Use spec objects rather than dictionaries
2021-02-26 23:03:33 -05:00
7543654e7c
Set readthedocs python version to 3.8
2021-02-26 15:48:48 -05:00
1920e45049
Add readthedocs configuration
2021-02-26 15:48:00 -05:00
16250d8f90
Blacken code
2021-02-26 15:34:54 -05:00
12813757d1
Add documentation
2021-02-26 15:28:32 -05:00
10e5784543
Remove 418 responses from tests
...
Older versions of Tornado raise a ValueError when supplied with HTTP
status code 418. I guess it's anti-teapot.
2021-02-26 12:17:30 -05:00
3b3085652d
Ignore types on tornado includes
...
Older versions of Tornado supported by this library lack type annotations.
2021-02-26 12:04:47 -05:00
8b243ee565
Add a test case base class
...
Add a unittest test case class based on Tornado's AsyncHTTPTestCase
which validates responses against an OpenAPI 3 specification.
2021-02-25 22:55:07 -05:00
d05f5dfd32
Add a request handler
...
Add a request handler class that validates incoming requests against an
OpenAPI 3 specification and translates errors to appropriate HTTP
response codes.
2021-02-25 22:53:51 -05:00
69ffb92c06
Run tests on Python 3.9
2021-01-22 00:10:43 -05:00
a0799642ae
Bump version to 0.2.4
2021-01-18 13:38:32 -05:00
ecd5709a87
Merge pull request #2 from gmr/include-cookies
...
Include cookies in the Request validation
2021-01-18 13:32:18 -05:00
Gavin M. Roy
4896a5d5e0
Include cookies in the Request validation
2021-01-18 13:23:31 -05:00
2b57d71113
Disable deadline in hypothesis profiles
...
The deadline was not being overridden as described in the README, as the
default profile is not mutable. This registers an additional CI profile
disabling the deadline.
2021-01-13 16:55:03 -05:00
c7cc5ab05d
Bump version to 0.2.3
2021-01-13 14:58:02 -05:00
513166456a
Parse mimetype from content-type
...
OpenAPI objects expect lowercased mimetypes, with parameters stripped.
2021-01-13 14:33:39 -05:00
15a30bb1cf
Bump version to 0.2.2
2021-01-06 15:15:01 -05:00
4102a14883
Leave request and response bodies as binary data
...
Decoding to UTF-8 text is the responsibility of the content-type loader
used in the validator, and should not be done prior.
2021-01-06 14:50:15 -05:00
b69f690d50
Remove the ci Hypothesis profile
...
It is slow and there's no real benefit from it at this time.
2020-12-04 23:34:57 -05:00
3de1f9c430
Configure coverage reporting
...
Require 100% code coverage and report missing lines.
2020-12-04 23:04:14 -05:00
91f6c202d9
Add contribution documentation to the README
2020-12-04 22:46:40 -05:00
3704bfab49
Configure Hypothesis profiles
...
Add a ci profile using more examples for automated testing and a dev
profile for rapid local testing.
2020-12-04 22:44:22 -05:00
b91feab778
Set stricter mypy parameters
2020-12-04 21:01:22 -05:00
5a613a54b0
Validate formatting with pytest-black
2020-12-04 20:57:39 -05:00
19d0b59659
Bump version to 0.2.1
2020-12-04 13:38:02 -05:00
2278f30be1
Format code with black
2020-12-04 13:37:25 -05:00
535eaaa988
Merge pull request #1 from gmr/fix-server-matching
...
Tornado HTTPServerRequest.uri is just the path portion of the URI
2020-12-04 13:33:55 -05:00
Gavin M. Roy
cbcbef3351
Tornado HTTPServerRequest.uri is just the path portion of the URI
2020-12-04 13:29:32 -05:00
7d23ccbf8e
Bump version to 0.2.0
2020-11-26 22:42:46 -05:00
8c750bc16c
Add additional request tests
...
- Cover empty url cases
- Test using the new RequestValidator object
2020-11-26 22:24:58 -05:00
0b0bb57f2e
Add codecov and black badges to README
2020-11-26 00:24:21 -05:00
98d112369f
Handle unset response bodies
2020-11-26 00:18:36 -05:00
2b2b423b7b
Add code coverage reporting
2020-11-26 00:13:04 -05:00
bcf128e69d
Add response validation
2020-11-26 00:05:02 -05:00
53471f3fce
Add support for tornado.httpclient.HTTPRequest
2020-11-25 22:25:19 -05:00
a5aa5adc9f
Mark library as typed and bump version
2020-11-23 11:29:28 -05:00
d7cffc4df8
Bump version to 0.1.1
2020-11-23 10:41:27 -05:00
f08b39d289
Add Travis CI badge
2020-11-20 13:02:46 -05:00
3c325a73ad
Ignore tornado types
...
Not all supported versions of Tornado include type information.
2020-11-20 12:49:06 -05:00
dea15c3be1
Add Travis CI
2020-11-20 12:43:23 -05:00
dcd867d570
Add usage example to README
2020-11-20 12:24:52 -05:00
c81019df96
Add a tornado-specific validator for convenience
2020-11-20 12:00:43 -05:00
e80db27aa9
Get mimetype from header
2020-11-19 19:37:58 -05:00
aa9e595fa9
Rename module
2020-09-25 10:55:54 -04:00
f77f8a9660
Update .gitignore
2020-09-25 10:17:09 -04:00
75c17a16c8
Add tox config and broaden tornado support
2020-09-25 10:15:06 -04:00
eb930381da
Add module to package
2020-09-25 10:14:40 -04:00
e48a589124
Add url parameters tests
2020-09-19 20:38:08 -04:00
2984bee7c8
Add hypothesis directory to .gitignore
2020-09-18 00:28:23 -04:00