Open
Conversation
There was a problem hiding this comment.
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
/extractionsPOST in the root spec and add the extraction response schema. - Add reusable enum schemas:
country_codesanddocument_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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description