Skip to content

Commit

Permalink
Validate YAML examples against schema
Browse files Browse the repository at this point in the history
  • Loading branch information
avillar committed Jan 22, 2024
1 parent 55562ed commit 3dd1dc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ogc/bblocks/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ def validate_test_resources(bblock: BuildingBlock,
add_snippets_formats = [add_snippets_formats]
elif not add_snippets_formats:
add_snippets_formats = []
if code and lang in ('json', 'jsonld', 'ttl', 'json-ld', 'turtle'):
if code and lang in ('json', 'jsonld', 'ttl', 'json-ld', 'turtle', 'yaml'):
fn = bblock.files_path / (f"example_{example_id + 1}_{snippet_id + 1}"
f".{FORMAT_ALIASES.get(snippet['language'], snippet['language'])}")

Expand Down

0 comments on commit 3dd1dc4

Please sign in to comment.