You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description of the problem including expected versus actual behavior:
asciidoc_fields.py fails if hard-coded category fields in asciidoc_fields.page_field_values were removed by e.g. a custom schema
Steps to reproduce:
python scripts/generator.py --exclude=schemas/event.yml
Loading schemas from local files
Running generator. ECS version 2.0.0-dev
Traceback (most recent call last):
File "scripts/generator.py", line 107, in <module>
main()
File "scripts/generator.py", line 66, in main
asciidoc_fields.generate(nested, ecs_generated_version, docs_dir)
File "/Users/djptek/git/ecs/scripts/generators/asciidoc_fields.py", line 13, in generate
save_asciidoc(path.join(out_dir, 'field-values.asciidoc'), page_field_values(nested))
File "/Users/djptek/git/ecs/scripts/generators/asciidoc_fields.py", line 94, in decorated_function
ctx = func(*args, **kwargs)
File "/Users/djptek/git/ecs/scripts/generators/asciidoc_fields.py", line 175, in page_field_values
nested_fields.append(nested['event']['fields'][cat_field])
KeyError: 'event'
Description of the problem including expected versus actual behavior:
asciidoc_fields.py fails if hard-coded category fields in asciidoc_fields.page_field_values were removed by e.g. a custom schema
Steps to reproduce:
Provide logs (if relevant):
n/a
Any additional context:
moot while --exclude PR not merged
The text was updated successfully, but these errors were encountered: