Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Silvanoc
Copy link
Contributor

@Silvanoc Silvanoc commented Apr 15, 2025

Instantiation of ContextGenerator is passing a field that doesn't exist: metadata. The right one appears to be emit_metadata.

The issue does not have any observable effect, because the value being passed to metadata is hard-coded to False and the default of the correct field emit_metadata is also False. It is nevertheless an error that should get fixed or may otherwise bite us in the future.

Fixes #2620

Instantiation of ContextGenerator is passing a field that doesn't exist:
"metadata". The right one appears to be "emit_metadata".

Fixes #2620

Signed-off-by: Silvano Cirujano Cuesta <[email protected]>
@codecov
Copy link

codecov bot commented Apr 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.14%. Comparing base (bf5861b) to head (9a54b40).
Report is 25 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2621   +/-   ##
=======================================
  Coverage   81.14%   81.14%           
=======================================
  Files         121      121           
  Lines       13552    13552           
  Branches     3801     3801           
=======================================
  Hits        10997    10997           
- Misses       1923     1924    +1     
+ Partials      632      631    -1     

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

@sujaypatil96
Copy link
Member

I have some experience with JSON-LD from my past work ex, so happy to review these gen-jsonld related PR's @Silvanoc.

Copy link
Contributor

@amc-corey-cox amc-corey-cox left a comment

Choose a reason for hiding this comment

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

This looks right to me. I'll give @sujaypatil96 a bit to weigh in and then merge.

@amc-corey-cox
Copy link
Contributor

Ah, I see. You need this for the other PR and it is really very simple. I'm merging it now.

@amc-corey-cox amc-corey-cox merged commit 6dbf505 into main Apr 23, 2025
17 checks passed
@ialarmedalien ialarmedalien deleted the fix-2620 branch July 8, 2025 15:00
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.

Wrong ContextGenerator field being assigned in jsonldgen.py

3 participants