maximdanilchenko / aiohttp-apispec

Build and document REST APIs with aiohttp and apispec
https://aiohttp-apispec.rtfd.io
MIT License
220 stars 58 forks source link

add check response by schema #97

Open Sanchoyzer opened 4 years ago

Sanchoyzer commented 4 years ago

Added the ability to validate the response using schemas

codecov-commenter commented 4 years ago

Codecov Report

Merging #97 into master will increase coverage by 0.49%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #97      +/-   ##
==========================================
+ Coverage   95.91%   96.41%   +0.49%     
==========================================
  Files           8        8              
  Lines         245      251       +6     
==========================================
+ Hits          235      242       +7     
+ Misses         10        9       -1     
Impacted Files Coverage Δ
aiohttp_apispec/middlewares.py 91.17% <100.00%> (+1.89%) :arrow_up:
aiohttp_apispec/aiohttp_apispec.py 95.65% <0.00%> (+0.72%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 4697941...90ea591. Read the comment docs.

maximdanilchenko commented 4 years ago

@Sanchoyzer thanks for the PR! Could you please make this checking to be optional?

Sanchoyzer commented 4 years ago

@maximdanilchenko I have tried, but it seems that there is a bug which blocked me https://github.com/maximdanilchenko/aiohttp-apispec/issues/98