Commit 3cceac1c authored by Pierre Dittgen's avatar Pierre Dittgen
Browse files

Remove 'Description' title for pattern-constraint errors

parent f6b5a2eb
......@@ -126,7 +126,7 @@ def pattern_constraint(err, schema):
field = schema['fields'][column_number - 1]
info_list = []
if 'description' in field:
info_list.append('## Description\n{}\n'.format(field['description']))
if 'example' in field:
info_list.append("## Exemple(s) valide(s)\n{}\n".format(field['example']))
msg = '\n'.join(info_list) if info_list else '*Aucune description ni exemple à afficher.*'
Supports Markdown
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