Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Communications Backbone System
backbone-message-format
Commits
43d499c4
Verified
Commit
43d499c4
authored
8 months ago
by
Dan Jones
Browse files
Options
Download
Email Patches
Plain Diff
lint: run black
parent
6ee319b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
generate_schema_config.py
generate_schema_config.py
+4
-4
No files found.
generate_schema_config.py
View file @
43d499c4
...
@@ -113,9 +113,9 @@ swagger_config = {
...
@@ -113,9 +113,9 @@ swagger_config = {
def
configure_flask
(
swagger_config
):
def
configure_flask
(
swagger_config
):
"""
"""
Setup a flask app, load flasgger
Setup a flask app, load flasgger
and then patch to remove invalid
and then patch to remove invalid
definitions:{} object
definitions:{} object
"""
"""
app
=
Flask
(
__name__
)
app
=
Flask
(
__name__
)
...
@@ -134,8 +134,8 @@ def configure_flask(swagger_config):
...
@@ -134,8 +134,8 @@ def configure_flask(swagger_config):
@
app
.
after_request
@
app
.
after_request
def
after_request_decorator
(
response
):
def
after_request_decorator
(
response
):
"""
"""
I didn't want to mess with flasgger so
I didn't want to mess with flasgger so
this blunt workaround that runs on every
this blunt workaround that runs on every
route and then checks whether it's required
route and then checks whether it's required
"""
"""
is_response
=
type
(
response
).
__name__
==
"Response"
is_response
=
type
(
response
).
__name__
==
"Response"
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment