Skip to content

Log path and value in metadata validation error - #69

Merged
GDYendell merged 2 commits into
mainfrom
amend_metadata_validation_warning
Jun 9, 2025
Merged

GDYendell merged 2 commits into
mainfrom
amend_metadata_validation_warning

Conversation

@shihab-dls

Copy link
Copy Markdown
Collaborator

Related to #68.

This PR adds more information to the metadata validation error. This used to be:

WARNING:root:Type not supported:
1 validation error for OdinParameterMetadata
type
  Input should be 'float', 'int', 'bool' or 'str' [type=literal_error, input_value='list', input_type=str]
    For further information visit https://errors.pydantic.dev/2.11/v/literal_error

and is now:

WARNING:root:Type not supported for path ['0', 'command', 'hdf', 'allowed'] with value {'value': ['start_writing', 'stop_writing'], 'writeable': False, 'type': 'list'}:
1 validation error for OdinParameterMetadata
type
  Input should be 'float', 'int', 'bool' or 'str' [type=literal_error, input_value='list', input_type=str]
    For further information visit https://errors.pydantic.dev/2.11/v/literal_error

@shihab-dls
shihab-dls requested a review from GDYendell June 5, 2025 08:20
@codecov

codecov Bot commented Jun 5, 2025 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.57%. Comparing base (6670345) to head (3443aa4).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #69   +/-   ##
=======================================
  Coverage   91.57%   91.57%           
=======================================
  Files          11       11           
  Lines         475      475           
=======================================
  Hits          435      435           
  Misses         40       40           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@GDYendell
GDYendell force-pushed the amend_metadata_validation_warning branch from 04bc821 to 3443aa4 Compare June 9, 2025 13:49
@GDYendell
GDYendell merged commit a42c48e into main Jun 9, 2025
@GDYendell
GDYendell deleted the amend_metadata_validation_warning branch June 9, 2025 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants