Skip to content

fix(tests): nest structured annotation payload under value - #266

Open
noelmcloughlin wants to merge 3 commits into
linkml:mainfrom
noelmcloughlin:annotateme
Open

fix(tests): nest structured annotation payload under value#266
noelmcloughlin wants to merge 3 commits into
linkml:mainfrom
noelmcloughlin:annotateme

Conversation

@noelmcloughlin

@noelmcloughlin noelmcloughlin commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Fixes #linkml/linkml#3809

  • Nesting the payload under value (range AnyValue) preserves the structure and lets the file load
  • Hard fail tests/test_input_against_model.py when counted failures

@matentzn matentzn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change is good, but why dont we take this opportunity to hard fail in tests/test_input_against_model.py? Like this it also wont happen again... If I know go and add the same wrong modelling to a new test it will just be ignored again..

self.assertEqual(nfailures, 0, f"{nfailures} input file(s) failed to load")

@noelmcloughlin

Copy link
Copy Markdown
Contributor Author

Added

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants