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
2eda77ab
Verified
Commit
2eda77ab
authored
6 months ago
by
Dan Jones
Browse files
Options
Download
Email Patches
Plain Diff
fix: correct argparse default behaviour
parent
6fea1892
dev
80-add-informational-type-primitive
87-remove-comment-for-platform-status-state
action-refactor-test
master
v2.0.0
v2.0.0-beta.11
v2.0.0-beta.10
v2.0.0-beta.9
v2.0.0-beta.8
v2.0.0-beta.7
v2.0.0-beta.6
v2.0.0-beta.5
v2.0.0-beta.4
v2.0.0-beta.3
v2.0.0-beta.2
v2.0.0-beta.1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
generate_schema_config.py
generate_schema_config.py
+4
-3
No files found.
generate_schema_config.py
View file @
2eda77ab
...
...
@@ -82,7 +82,8 @@ def get_swagger_config():
+
"platform_status_encoded"
,
"acknowledgement"
:
"#/components/schemas/acknowledgement"
,
"survey"
:
"#/components/schemas/survey"
,
"survey_encoded"
:
"#/components/schemas/"
+
"survey_encoded"
,
"survey_encoded"
:
"#/components/schemas/"
+
"survey_encoded"
,
},
},
"oneOf"
:
[
...
...
@@ -194,7 +195,7 @@ def import_remote_refs(swagger_config):
returns True if all schemas resolved and injected
"""
# For some reason importing Feature or FeatureCollection
# makes the schema fail to validate
# makes the schema fail to validate
ref_imports
=
[
# "https://geojson.org/schema/Feature.json",
...
...
@@ -315,7 +316,7 @@ def get_options():
args
=
parser
.
parse_args
()
config
=
vars
(
args
)
# If no flag is specified default to running the flask server
if
all
(
v
is
False
for
v
in
config
.
values
()
):
if
not
(
config
[
'run_flask'
]
or
config
[
'output_file'
]
):
config
[
"run_flask"
]
=
True
return
config
...
...
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