Skip to content

fix: align extract JSON output with API schema#71

Merged
NormallyGaussian merged 1 commit intomainfrom
fix/extract-api-schema-alignment
Mar 12, 2026
Merged

fix: align extract JSON output with API schema#71
NormallyGaussian merged 1 commit intomainfrom
fix/extract-api-schema-alignment

Conversation

@NormallyGaussian
Copy link
Contributor

Summary

  • Fix extract error serialization to use correct API field names (error_type, http_status_code, content) instead of (error, status_code)
  • Add missing publish_date to extract result output
  • Add missing warnings to extract JSON output, consistent with search command

Test plan

  • Existing extract tests pass
  • New test: test_extract_warnings_serialized_in_json_output — verifies non-null warnings serialize correctly
  • New test: test_extract_errors_serialized_in_json_output — verifies error fields match API schema
  • Strengthened existing test to assert on publish_date and empty warnings

- Use correct error field names (error_type, http_status_code, content)
  to match ExtractError schema
- Include publish_date in extract result output
- Include warnings in extract JSON output, consistent with search command
@NormallyGaussian NormallyGaussian merged commit b2bb4eb into main Mar 12, 2026
7 checks passed
@NormallyGaussian NormallyGaussian deleted the fix/extract-api-schema-alignment branch March 12, 2026 20:06
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