Skip to content

Fix object instantiation in _normalize_inlined() #392

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

christian-monch
Copy link

This commit fixes a problem that was discovered when using linkml-convert to convert JSON to TTL using the schema: https://concepts.inm7.de/s/simpleinput/unreleased.yaml

The original code used a dictionary as the argument to the constructor of a Pydantic class, but should have used the **-operator to convert the dictionary into keyword arguments.

This commit fixes a problem that was discovered while
converting between TTL and JSON using the schema
https://concepts.inm7.de/s/simpleinput/unreleased.yaml

The original code used a dictionary as argument to
the constructor of a pydantic-class, when it should
have used the **-operator to cnvert the dictionary
into keyword arguments.
Copy link

codecov bot commented May 19, 2025

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 63.79%. Comparing base (b2206a4) to head (9fdcd41).
Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
linkml_runtime/utils/yamlutils.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #392   +/-   ##
=======================================
  Coverage   63.79%   63.79%           
=======================================
  Files          63       63           
  Lines        8938     8938           
  Branches     2584     2584           
=======================================
  Hits         5702     5702           
  Misses       2629     2629           
  Partials      607      607           

☔ 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.

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.

1 participant