Commit 9220ec81 authored by Christophe Benz's avatar Christophe Benz

Remove "examples"

parent 1562c3ee
Pipeline #898 failed with stages
in 2 minutes and 24 seconds
......@@ -198,18 +198,8 @@ def convert_json(schema_code, schema_json, context_md_text, see_also_md_text, ou
out_fd.write('- {} : {}\n'.format(SCHEMA_PROP_MAP[property_name],
format_property(property_name, property_value)))
out_fd.write("- Données d'exemple :\n")
' - [Gabarit au format Excel (xlsx)]({}.xlsx)\n'.format(schema_code))
examples = schema_json.get("examples")
if examples:
for example in examples:
name = example.get("name")
url = example.get("url")
if name and url:
out_fd.write(' - [{}]({})\n'.format(name, url))
log.error("Schema %s: skipping invalid example: %r", schema_json["title"], example)
'- [Gabarit au format Excel (xlsx)]({}.xlsx)\n'.format(schema_code))
# Missing values
missing_values = schema_json.get('missingValues')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment