Skip to content

Data schema - #370

Merged
ianardee merged 2 commits into
mainfrom
data-schema
Dec 3, 2026
Merged

ianardee merged 2 commits into
mainfrom
data-schema

Conversation

@ianardee

@ianardee ianardee commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

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.

🟡 Changes recommended

Changing getDataSchema() from returning String to DataSchema breaks existing source assignments and causes NoSuchMethodError for previously compiled clients; separately, the new dataSchema overloads make .dataSchema(null) ambiguous, so clients explicitly clearing this optional parameter no longer compile.

2 open issues
What changed in this PR

Adds structured data-schema support to V2 extraction parameters.

Changes:

  • Introduces schema, replacement, and field models with JSON serialization.
  • Accepts schemas as JSON strings, maps, or typed objects.
  • Expands parameter tests to cover all three input forms.
File Description
src/​test/​java/​com/​mindee/​v2/​product/​extraction/​ExtractionParametersTest.java Tests schema inputs and request serialization.
src/​main/​java/​com/​mindee/​v2/​product/​extraction/​params/​ExtractionParameters.java Integrates typed schemas and builder overloads.
src/​main/​java/​com/​mindee/​v2/​product/​extraction/​params/​DataSchemaReplace.java Models replacement schema fields.
src/​main/​java/​com/​mindee/​v2/​product/​extraction/​params/​DataSchemaField.java Defines field properties.
src/​main/​java/​com/​mindee/​v2/​product/​extraction/​params/​DataSchema.java Parses and serializes schema configuration.

Review effort: Balanced

@ianardee
ianardee merged commit 73c0658 into main Dec 3, 2026
15 checks passed
@ianardee
ianardee deleted the data-schema branch December 3, 2026 17:22
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