Skip to content

Commit 5ed1dac

Browse files
committed
Do not downcompile to OAS 3.0 if not required
1 parent 0834bcc commit 5ed1dac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ogc/bblocks/postprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def do_postprocess(bblock: BuildingBlock, light: bool = False) -> bool:
303303
dump_yaml(openapi_resolved, building_block.output_openapi)
304304
print(f" - {os.path.relpath(building_block.output_openapi)}", file=sys.stderr)
305305

306-
if openapi_resolved.get('openapi', '').startswith('3.1'):
306+
if openapi_resolved.get('openapi', '').startswith('3.1') and schemas_oas30_downcompile:
307307
print(f"Downcompiling OpenAPI document to 3.0 for {building_block.identifier}", file=sys.stderr)
308308
oas30_doc_fn = building_block.output_openapi_30
309309
oas30_doc = oas31_to_oas30(openapi_resolved,

0 commit comments

Comments
 (0)