mirror of
https://github.com/correl/openapi-core.git
synced 2024-11-29 03:00:12 +00:00
23 lines
469 B
Python
23 lines
469 B
Python
|
"""OpenAPI core contrib flask responses module"""
|
||
|
import re
|
||
|
|
||
|
from openapi_core.wrappers.base import BaseOpenAPIResponse
|
||
|
|
||
|
|
||
|
class FlaskOpenAPIResponse(BaseOpenAPIResponse):
|
||
|
|
||
|
def __init__(self, response):
|
||
|
self.response = response
|
||
|
|
||
|
@property
|
||
|
def data(self):
|
||
|
return self.response.data
|
||
|
|
||
|
@property
|
||
|
def status_code(self):
|
||
|
return self.response._status_code
|
||
|
|
||
|
@property
|
||
|
def mimetype(self):
|
||
|
return self.response.mimetype
|