Skip to content

✨ add error response rst output - #463

Merged
ianardee merged 3 commits into
mainfrom
better-error-response
Sep 21, 2026
Merged

ianardee merged 3 commits into
mainfrom
better-error-response

Conversation

@ianardee

Copy link
Copy Markdown
Contributor

Description

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Requires a change to the official Guide documentation.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

The critical raw_http initialization issue and pointer fallback issue remain unresolved.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 High severity

Open (1)
What changed in this PR

This pull request adds RST-formatted V2 error responses and standardizes test resource-path constants.

Changes:

  • Adds RST output and regression coverage for V2 errors.
  • Renames shared test resource constants from *_DIR to *_PATH.
  • Updates related documentation and changelog formatting.

Review findings: Critical (3 votes): V2 HTTP exceptions may expose an uninitialized raw_http. Nit (1 vote): omitted error pointers render as None instead of an empty fallback.

File Change
tests/​v2/​test_client.py Updates V2 resource paths.
tests/​v2/​test_client_integration.py Updates integration fixture paths.
tests/​v2/​test_cli.py Updates CLI fixture paths.
tests/​v2/​search/​test_rag_document_search.py Updates search resource path.
tests/​v2/​search/​test_model_search.py Updates search resource path.
tests/​v2/​product/​utils.py Updates product sample paths.
tests/​v2/​product/​split/​test_split_integration.py Updates split sample path.
tests/​v2/​product/​ocr/​test_ocr_integration.py Updates OCR sample path.
tests/​v2/​product/​extraction/​test_extraction_response.py Updates extraction fixture path.
tests/​v2/​product/​crop/​test_crop_integration.py Updates crop sample path.
tests/​v2/​product/​classification/​test_classification_integration.py Updates classification sample path.
tests/​v2/​parsing/​test_job_response.py Updates job resource path.
tests/​v2/​parsing/​test_failed_inference_response.py Updates error resource path.
tests/​v2/​parsing/​test_error_response.py Adds RST output regression coverage.
tests/​v2/​input/​test_local_response.py Updates local response fixture path.
tests/​v2/​input/​test_inference_parameters.py Updates parameter fixture path.
tests/​v2/​file_operations/​test_split_operation.py Updates split operation fixtures.
tests/​v2/​file_operations/​test_split_operation_integration.py Updates split integration paths.
tests/​v2/​file_operations/​test_crop_operation.py Updates crop operation fixtures.
tests/​v2/​file_operations/​test_crop_operation_integration.py Updates crop integration paths.
tests/​v1/​workflows/​test_workflow.py Updates workflow resource path.
tests/​v1/​workflows/​test_workflow_integration.py Updates workflow sample path.
tests/​v1/​test_client.py Updates V1 client fixture paths.
tests/​v1/​test_cli.py Updates V1 CLI fixture paths.
tests/​v1/​product/​us/​bank_check/​test_bank_check_v1.py Updates bank-check fixture path.
tests/​v1/​product/​us/​bank_check/​test_bank_check_v1_regression.py Updates regression fixture paths.
tests/​v1/​product/​receipt/​test_receipt_v5.py Updates receipt fixture path.
tests/​v1/​product/​receipt/​test_receipt_v5_regression.py Updates regression fixture paths.
tests/​v1/​product/​passport/​test_passport_v1.py Updates passport fixture path.
tests/​v1/​product/​passport/​test_passport_v1_regression.py Updates regression fixture paths.
tests/​v1/​product/​multi_receipts_detector/​test_multi_receipts_detector_v1.py Updates detector fixture path.
tests/​v1/​product/​multi_receipts_detector/​test_multi_receipts_detector_v1_regression.py Updates regression fixture paths.
tests/​v1/​product/​invoice/​test_invoice_v4.py Updates invoice fixture path.
tests/​v1/​product/​invoice/​test_invoice_v4_regression.py Updates regression fixture paths.
tests/​v1/​product/​invoice_splitter/​test_invoice_splitter_v1.py Updates splitter fixture path.
tests/​v1/​product/​invoice_splitter/​test_invoice_splitter_v1_regression.py Updates regression fixture paths.
tests/​v1/​product/​international_id/​test_international_id_v2.py Updates product fixture path.
tests/​v1/​product/​generated/​test_generated_v1.py Updates generated-response paths.
tests/​v1/​product/​fr/​id_card/​test_id_card_v2.py Updates ID-card fixture path.
tests/​v1/​product/​fr/​id_card/​test_id_card_v2_regression.py Updates regression fixture paths.
tests/​v1/​product/​fr/​id_card/​test_id_card_v1.py Updates ID-card fixture path.
tests/​v1/​product/​fr/​id_card/​test_id_card_v1_regression.py Updates regression fixture paths.
tests/​v1/​product/​fr/​carte_grise/​test_carte_grise_v1.py Updates carte-grise fixture path.
tests/​v1/​product/​fr/​carte_grise/​test_carte_grise_v1_regression.py Updates regression fixture paths.
tests/​v1/​product/​fr/​bank_account_details/​test_bank_account_details_v2.py Updates fixture path.
tests/​v1/​product/​fr/​bank_account_details/​test_bank_account_details_v2_regression.py Updates regression fixture paths.
tests/​v1/​product/​fr/​bank_account_details/​test_bank_account_details_v1.py Updates fixture path.
tests/​v1/​product/​fr/​bank_account_details/​test_bank_account_details_v1_regression.py Updates regression fixture paths.
tests/​v1/​product/​financial_document/​test_financial_document_v1.py Updates financial-document fixture path.
tests/​v1/​product/​financial_document/​test_financial_document_v1_regression.py Updates regression fixture paths.
tests/​v1/​product/​custom/​test_custom_v1.py Updates custom-product paths.
tests/​v1/​product/​custom/​test_custom_v1_v2.py Updates custom-product paths.
tests/​v1/​product/​custom/​test_custom_v1_line_items.py Updates line-item fixture paths.
tests/​v1/​product/​cropper/​test_cropper_v1.py Updates cropper fixture path.
tests/​v1/​product/​cropper/​test_cropper_v1_regression.py Updates regression fixture paths.
tests/​v1/​product/​barcode_reader/​test_barcode_reader_v1.py Updates barcode fixture path.
tests/​v1/​product/​barcode_reader/​test_barcode_reader_v1_regression.py Updates regression fixture paths.
tests/​v1/​parsing/​common/​test_ocr.py Updates OCR resource paths.
tests/​v1/​mindee_http/​test_error.py Updates HTTP error fixture paths.
tests/​v1/​extras/​test_full_text_ocr.py Updates OCR extra paths.
tests/​v1/​extras/​test_extras_integration.py Updates integration sample paths.
tests/​v1/​extraction/​test_pdf_extractor.py Updates extraction paths.
tests/​v1/​extraction/​test_multi_receipts_extractor.py Updates extraction fixture paths.
tests/​v1/​extraction/​test_invoice_splitter_auto_extraction.py Updates splitter fixture paths.
tests/​v1/​extraction/​test_image_extractor.py Updates image fixture paths.
tests/​v1/​api/​test_response.py Updates response fixture paths.
tests/​v1/​api/​test_feedback_response.py Updates feedback fixture path.
tests/​v1/​api/​test_async_response.py Updates async resource paths.
tests/​utils.py Renames shared resource constants.
tests/​input/​test_inputs.py Updates input fixture paths.
tests/​input/​test_fix_pdf.py Updates PDF fixture paths.
tests/​input/​test_compression.py Updates compression fixture paths.
tests/​input/​test_apply_page_options.py Updates page-option fixture paths.
mindee/​v2/​parsing/​error/​error_response.py Adds common response support and RST formatting.
mindee/​v2/​mindee_http/​mindee_api_v2.py Corrects the deprecated method reference.
CHANGELOG.md Adjusts changelog spacing.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread mindee/v2/parsing/error/error_response.py Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Invalid Protocol inheritance prevents imports, and HTTP error typing introduces compatibility issues.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 2 High severity

Open (2)
Resolved since last review (1)

Comment thread mindee/v2/error/mindee_http_error_v2.py
Comment thread mindee/v2/parsing/error/error_response.py
@ianardee
ianardee force-pushed the better-error-response branch from 6323a28 to 1844d63 Compare September 21, 2026 17:02
@ianardee
ianardee merged commit b3e7f1d into main Sep 21, 2026
42 checks passed
@ianardee
ianardee deleted the better-error-response branch September 21, 2026 17:10
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