Skip to content

WA-26526: Add extractions schema#11

Open
emils-wallester wants to merge 1 commit intomasterfrom
feature/WA-26526-document-extractions
Open

WA-26526: Add extractions schema#11
emils-wallester wants to merge 1 commit intomasterfrom
feature/WA-26526-document-extractions

Conversation

@emils-wallester
Copy link
Copy Markdown
Collaborator

@emils-wallester emils-wallester commented Apr 13, 2026

Description

Copilot AI review requested due to automatic review settings April 13, 2026 14:24
@emils-wallester emils-wallester requested a review from tab April 13, 2026 14:26
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new /extractions (“Autofill”) endpoint to the OpenAPI definition and regenerates the Go client, introducing new extraction models plus shared enums for country and document types.

Changes:

  • Define /extractions POST in the root spec and add the extraction response schema.
  • Add reusable enum schemas: country_codes and document_types.
  • Regenerate Go client code + docs with OpenAPI Generator 7.21.0 (new API method, models, docs, and generated api/openapi.yaml).

Reviewed changes

Copilot reviewed 28 out of 28 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
schemas/extractions/extraction.yaml Adds the Extraction schema (document classification + extracted fields).
schemas/document_types/document_types.yaml Introduces document type enum used by extraction schemas/models.
schemas/countries/country_codes.yaml Introduces ISO3 country code enum used by extraction schemas/models.
responses/document_extraction_error.yaml Defines extraction-specific error response schema.
README.md Updates generator version and documents the new Extract endpoint/models.
paths/extractions.yaml Adds /extractions POST operation definition.
openapi.yaml Wires /extractions into the root OpenAPI paths.
model_extraction.go Generated Go model for Extraction.
model_extraction_extracted_data.go Generated Go model for extracted document fields.
model_extraction_document_classification.go Generated Go model for extracted document classification.
model_extract_request.go Generated Go model for the extraction request payload.
model_error_properties_1.go Generated Go error properties model for extraction error shape.
model_error_1.go Generated Go error wrapper model for extraction error shape.
model_document_types.go Generated Go enum for document types.
model_country_codes.go Generated Go enum for country codes.
docs/ExtractRequest.md Generated model documentation for ExtractRequest.
docs/ExtractionExtractedData.md Generated model documentation for ExtractionExtractedData.
docs/ExtractionDocumentClassification.md Generated model documentation for ExtractionDocumentClassification.
docs/Extraction.md Generated model documentation for Extraction.
docs/ErrorProperties1.md Generated model documentation for ErrorProperties1.
docs/Error1.md Generated model documentation for Error1.
docs/DocumentTypes.md Generated enum documentation for DocumentTypes.
docs/DefaultAPI.md Generated API docs including Extract endpoint.
docs/CountryCodes.md Generated enum documentation for CountryCodes.
api/openapi.yaml Regenerated bundled OpenAPI spec including new path/schemas.
api_default.go Generated client method Extract and response decoding.
.openapi-generator/VERSION Bumps generator version to 7.21.0.
.openapi-generator/FILES Updates generated file manifest to include new artifacts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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