Skip to content

Revert "docs(documents): split document upload by identity vs non-identity"#523

Merged
wuvictor-95 merged 1 commit into
mainfrom
revert-split-document-upload
May 28, 2026
Merged

Revert "docs(documents): split document upload by identity vs non-identity"#523
wuvictor-95 merged 1 commit into
mainfrom
revert-split-document-upload

Conversation

@wuvictor-95
Copy link
Copy Markdown
Contributor

Summary

  • Reverts 560e4c2, which split POST /documents and PUT /documents/{id} request bodies into IdentityDocumentUploadRequest / NonIdentityDocumentUploadRequest (and the matching replace variants) via oneOf + discriminator.
  • Restores the single flat DocumentUploadRequest / DocumentReplaceRequest schemas with documentNumber and issuingAuthority optional, and puts the shared fields back on BaseDocumentRequest.
  • Deletes the now-unused IdentityDocumentType / NonIdentityDocumentType enums and the four split request schemas.

Test plan

  • make build succeeds; openapi.yaml and mintlify/openapi.yaml re-bundled and clean (no diff after rebuild).
  • Redocly bundle + validation pass.
  • Spot-check Mintlify rendering of Documents → Upload a document.

🤖 Generated with Claude Code

@vercel
Copy link
Copy Markdown

vercel Bot commented May 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
grid-flow-builder Ready Ready Preview, Comment May 28, 2026 3:46pm

Request Review

@github-actions github-actions Bot added the breaking-change Introduces a breaking change to the OpenAPI spec label May 28, 2026
@github-actions
Copy link
Copy Markdown
Contributor

⚠️ Breaking OpenAPI changes detected

This PR introduces breaking changes to openapi.yaml:

API Changelog 2025-10-13 vs. 2025-10-13

API Changes

POST /documents

  • ⚠️ added #/components/schemas/BaseDocumentRequest, subschema #2 to the request body allOf list
  • ⚠️ removed #/components/schemas/IdentityDocumentUploadRequest, #/components/schemas/NonIdentityDocumentUploadRequest from the request body oneOf list

PUT /documents/{documentId}

  • ⚠️ added #/components/schemas/BaseDocumentRequest to the request body allOf list
  • ⚠️ removed #/components/schemas/IdentityDocumentReplaceRequest, #/components/schemas/NonIdentityDocumentReplaceRequest from the request body oneOf list

Detected by oasdiff. This PR will need approval from an API reviewer before merge.

@wuvictor-95 wuvictor-95 enabled auto-merge (squash) May 28, 2026 15:46
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 28, 2026

✱ Stainless preview builds for grid

This PR will update the grid SDKs with the following commit messages.

cli

feat(api): add inner flag support to documents replace/upload methods

csharp

fix(types): consolidate identity/non-identity document types, make fields optional in documents

go

fix(types): simplify document unions, make documentNumber/issuingAuthority optional

kotlin

feat(api): unify document upload/replace models, remove identity/non-identity variants

openapi

fix(types): simplify document request types, remove identity/non-identity split

php

fix(types): consolidate document request unions, make documentNumber/issuingAuthority optional

python

fix(types): consolidate document types, make document_number/issuing_authority optional in documents

ruby

fix(types): merge identity/non-identity document types, make fields optional

typescript

fix(types): make documentNumber/issuingAuthority optional, remove identity variants in documents
⚠️ grid-openapi studio · code

Your SDK build had at least one "error" diagnostic.
generate ❗

⚠️ grid-ruby studio · code

Your SDK build had at least one "error" diagnostic.
generate ❗build ✅lint ✅test ✅

⚠️ grid-typescript studio · code

Your SDK build had a failure in the lint CI job, which is a regression from the base state.
generate ❗build ✅lint ❗test ✅

npm install https://pkg.stainless.com/s/grid-typescript/36917b39823d5098c3aef5ccfe44f017e7b061b5/dist.tar.gz
⚠️ grid-python studio · code

Your SDK build had at least one "error" diagnostic.
generate ❗build ✅lint ✅test ✅

pip install https://pkg.stainless.com/s/grid-python/b140e029493d16a9f4a8e3a2a452d4277204a489/grid-0.0.1-py3-none-any.whl
⚠️ grid-csharp studio · code

Your SDK build had a failure in the build CI job, which is a regression from the base state.
generate ❗build ❗lint ✅test ❗

⚠️ grid-go studio · code

Your SDK build had a failure in the lint CI job, which is a regression from the base state.
generate ❗build ✅lint ❗test ❗

go get github.com/stainless-sdks/grid-go@565627c7a26299e8ea5b48727854e1567a161f0d
⚠️ grid-php studio · code

Your SDK build had at least one "error" diagnostic.
generate ❗lint ✅test ✅

⚠️ grid-kotlin studio · code

Your SDK build had a failure in the build CI job, which is a regression from the base state.
generate ❗build ❗lint ✅test ❗

⚠️ grid-cli studio · code

Your SDK build had a failure in the build CI job, which is a regression from the base state.
generate ❗build ❗lint ❗test ❗


This comment is auto-generated by GitHub Actions and is automatically kept up to date as you push.
If you push custom code to the preview branch, re-run this workflow to update the comment.
Last updated: 2026-05-28 16:49:50 UTC

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented May 28, 2026

Greptile Summary

   (\(\       ✨ wuvictor-95's revert, reviewed! ✨
  ( ^.^)
  o_(")(")

This PR reverts the split of POST /documents and PUT /documents/{id} request bodies back to a single flat schema (DocumentUploadRequest / DocumentReplaceRequest), undoing the oneOf + discriminator approach. It also removes the now-unused IdentityDocumentType, NonIdentityDocumentType, and the four split request schemas.

  • BaseDocumentRequest now carries documentType (required), documentNumber, and issuingAuthority as shared optional fields, while DocumentUploadRequest adds the required documentHolder on top; DocumentReplaceRequest is a minimal allOf wrapper with no extra fields (intentional — the holder is already set on the existing document).
  • Six source schema files are deleted cleanly; the bundled openapi.yaml and mintlify/openapi.yaml are regenerated and consistent with the source changes.

Confidence Score: 4/5

Safe to merge — a clean revert with no logic changes; the only gaps are missing schema descriptions and identity-centric wording on shared fields.

The revert is structurally sound: DocumentType correctly consolidates all enum values, required fields are preserved in BaseDocumentRequest, and the bundled artifacts match the source. The two small gaps are missing description fields on DocumentUploadRequest and DocumentReplaceRequest, and identity-centric wording/examples on documentNumber/issuingAuthority that now apply to non-identity document types too.

openapi/components/schemas/documents/BaseDocumentRequest.yaml — the shared documentNumber/issuingAuthority descriptions and examples read as identity-document-specific even though these fields are now used by all document types.

Important Files Changed

Filename Overview
openapi/components/schemas/documents/BaseDocumentRequest.yaml Now includes documentType (required), documentNumber, and issuingAuthority as shared fields; examples/descriptions are identity-document-centric despite applying to all document types
openapi/components/schemas/documents/DocumentUploadRequest.yaml Reverted to simple allOf over BaseDocumentRequest plus required documentHolder; description field removed from the schema
openapi/components/schemas/documents/DocumentReplaceRequest.yaml Now just a titled allOf wrapper over BaseDocumentRequest with no extra properties and no description; intentionally omits documentHolder since replacement targets an existing document
openapi/components/schemas/documents/IdentityDocumentUploadRequest.yaml Deleted as part of the revert; was previously the identity-specific upload schema
openapi/components/schemas/documents/IdentityDocumentReplaceRequest.yaml Deleted as part of the revert; was previously the identity-specific replace schema
openapi/components/schemas/documents/IdentityDocumentType.yaml Deleted; values (PASSPORT, DRIVERS_LICENSE, NATIONAL_ID) are now folded into the existing unified DocumentType enum
openapi/components/schemas/documents/NonIdentityDocumentUploadRequest.yaml Deleted as part of the revert; was previously the non-identity upload schema
openapi/components/schemas/documents/NonIdentityDocumentReplaceRequest.yaml Deleted as part of the revert; was previously the non-identity replace schema
openapi/components/schemas/documents/NonIdentityDocumentType.yaml Deleted; values are preserved in the existing unified DocumentType enum
openapi.yaml Re-bundled to reflect schema revert; mirrors source schema changes correctly
mintlify/openapi.yaml Re-bundled Mintlify copy; mirrors source schema changes correctly

Class Diagram

%%{init: {'theme': 'neutral'}}%%
classDiagram
    class BaseDocumentRequest {
        +binary file
        +DocumentType documentType
        +string country
        +string side
        +string documentNumber
        +string issuingAuthority
    }
    class DocumentUploadRequest {
        +string documentHolder
    }
    class DocumentReplaceRequest {
    }
    class DocumentType {
        <<enumeration>>
        PASSPORT
        DRIVERS_LICENSE
        NATIONAL_ID
        PROOF_OF_ADDRESS
        UTILITY_BILL
        CERTIFICATE_OF_INCORPORATION
    }
    DocumentUploadRequest --|> BaseDocumentRequest
    DocumentReplaceRequest --|> BaseDocumentRequest
    BaseDocumentRequest --> DocumentType
Loading

Fix All in Claude Code

Prompt To Fix All With AI
Fix the following 3 code review issues. Work through them one at a time, proposing concise fixes.

---

### Issue 1 of 3
openapi/components/schemas/documents/BaseDocumentRequest.yaml:24-31
The `documentNumber` and `issuingAuthority` fields are now shared across all document types (both identity and non-identity), but their descriptions and examples remain identity-document-specific. Callers uploading a `CERTIFICATE_OF_INCORPORATION` or `UTILITY_BILL` will see "e.g., passport number" and "U.S. Department of State" as guidance — which is confusing. The old non-identity schemas used more neutral wording. Consider updating both to be generic enough to cover all document categories.

```suggestion
  documentNumber:
    type: string
    description: Document identification number (e.g., passport number, document reference)
    example: A12345678
  issuingAuthority:
    type: string
    description: Name of the agency or organization that issued the document
    example: U.S. Department of State
```

### Issue 2 of 3
openapi/components/schemas/documents/DocumentUploadRequest.yaml:1-2
The `description` field was dropped during the revert. The old `DocumentUploadRequest` had `description: Upload a verification document.`. Without it, rendered API docs (Mintlify/Redocly) will show no description for this schema, which hurts discoverability.

```suggestion
title: Document Upload Request
description: Upload a verification document.
allOf:
```

### Issue 3 of 3
openapi/components/schemas/documents/DocumentReplaceRequest.yaml:1-2
Same as `DocumentUploadRequest` — the `description` field was removed during the revert. Without it, rendered docs will show no description for this schema.

```suggestion
title: Document Replace Request
description: Replace an existing document.
allOf:
```

Reviews (1): Last reviewed commit: "Revert "docs(documents): split document ..." | Re-trigger Greptile

Comment on lines +24 to +31
documentNumber:
type: string
description: Document identification number (e.g., passport number)
example: A12345678
issuingAuthority:
type: string
description: Name of the government agency or organization that issued the document
example: U.S. Department of State
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 The documentNumber and issuingAuthority fields are now shared across all document types (both identity and non-identity), but their descriptions and examples remain identity-document-specific. Callers uploading a CERTIFICATE_OF_INCORPORATION or UTILITY_BILL will see "e.g., passport number" and "U.S. Department of State" as guidance — which is confusing. The old non-identity schemas used more neutral wording. Consider updating both to be generic enough to cover all document categories.

Suggested change
documentNumber:
type: string
description: Document identification number (e.g., passport number)
example: A12345678
issuingAuthority:
type: string
description: Name of the government agency or organization that issued the document
example: U.S. Department of State
documentNumber:
type: string
description: Document identification number (e.g., passport number, document reference)
example: A12345678
issuingAuthority:
type: string
description: Name of the agency or organization that issued the document
example: U.S. Department of State
Prompt To Fix With AI
This is a comment left during a code review.
Path: openapi/components/schemas/documents/BaseDocumentRequest.yaml
Line: 24-31

Comment:
The `documentNumber` and `issuingAuthority` fields are now shared across all document types (both identity and non-identity), but their descriptions and examples remain identity-document-specific. Callers uploading a `CERTIFICATE_OF_INCORPORATION` or `UTILITY_BILL` will see "e.g., passport number" and "U.S. Department of State" as guidance — which is confusing. The old non-identity schemas used more neutral wording. Consider updating both to be generic enough to cover all document categories.

```suggestion
  documentNumber:
    type: string
    description: Document identification number (e.g., passport number, document reference)
    example: A12345678
  issuingAuthority:
    type: string
    description: Name of the agency or organization that issued the document
    example: U.S. Department of State
```

How can I resolve this? If you propose a fix, please make it concise.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Fix in Claude Code

Comment on lines 1 to +2
title: Document Upload Request
description: Upload a verification document.
oneOf:
- $ref: ./IdentityDocumentUploadRequest.yaml
- $ref: ./NonIdentityDocumentUploadRequest.yaml
discriminator:
propertyName: documentType
mapping:
PASSPORT: ./IdentityDocumentUploadRequest.yaml
DRIVERS_LICENSE: ./IdentityDocumentUploadRequest.yaml
NATIONAL_ID: ./IdentityDocumentUploadRequest.yaml
PROOF_OF_ADDRESS: ./NonIdentityDocumentUploadRequest.yaml
BANK_STATEMENT: ./NonIdentityDocumentUploadRequest.yaml
TAX_RETURN: ./NonIdentityDocumentUploadRequest.yaml
CERTIFICATE_OF_INCORPORATION: ./NonIdentityDocumentUploadRequest.yaml
ARTICLES_OF_INCORPORATION: ./NonIdentityDocumentUploadRequest.yaml
ARTICLES_OF_ASSOCIATION: ./NonIdentityDocumentUploadRequest.yaml
STATE_REGISTRY_EXCERPT: ./NonIdentityDocumentUploadRequest.yaml
GOOD_STANDING_CERTIFICATE: ./NonIdentityDocumentUploadRequest.yaml
INFORMATION_STATEMENT: ./NonIdentityDocumentUploadRequest.yaml
INCUMBENCY_CERTIFICATE: ./NonIdentityDocumentUploadRequest.yaml
BUSINESS_LICENSE: ./NonIdentityDocumentUploadRequest.yaml
SHAREHOLDER_REGISTER: ./NonIdentityDocumentUploadRequest.yaml
POWER_OF_ATTORNEY: ./NonIdentityDocumentUploadRequest.yaml
UTILITY_BILL: ./NonIdentityDocumentUploadRequest.yaml
ELECTRICITY_BILL: ./NonIdentityDocumentUploadRequest.yaml
RENT_OR_LEASE_AGREEMENT: ./NonIdentityDocumentUploadRequest.yaml
DIRECTOR_REGISTRY: ./NonIdentityDocumentUploadRequest.yaml
TRUST_AGREEMENT: ./NonIdentityDocumentUploadRequest.yaml
STATE_COMPANY_REGISTRY: ./NonIdentityDocumentUploadRequest.yaml
PARTNERSHIP_CONTROL_AGREEMENT: ./NonIdentityDocumentUploadRequest.yaml
PARTNERSHIP_AGREEMENT: ./NonIdentityDocumentUploadRequest.yaml
SELFIE: ./NonIdentityDocumentUploadRequest.yaml
OTHER: ./NonIdentityDocumentUploadRequest.yaml
allOf:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 The description field was dropped during the revert. The old DocumentUploadRequest had description: Upload a verification document.. Without it, rendered API docs (Mintlify/Redocly) will show no description for this schema, which hurts discoverability.

Suggested change
title: Document Upload Request
description: Upload a verification document.
oneOf:
- $ref: ./IdentityDocumentUploadRequest.yaml
- $ref: ./NonIdentityDocumentUploadRequest.yaml
discriminator:
propertyName: documentType
mapping:
PASSPORT: ./IdentityDocumentUploadRequest.yaml
DRIVERS_LICENSE: ./IdentityDocumentUploadRequest.yaml
NATIONAL_ID: ./IdentityDocumentUploadRequest.yaml
PROOF_OF_ADDRESS: ./NonIdentityDocumentUploadRequest.yaml
BANK_STATEMENT: ./NonIdentityDocumentUploadRequest.yaml
TAX_RETURN: ./NonIdentityDocumentUploadRequest.yaml
CERTIFICATE_OF_INCORPORATION: ./NonIdentityDocumentUploadRequest.yaml
ARTICLES_OF_INCORPORATION: ./NonIdentityDocumentUploadRequest.yaml
ARTICLES_OF_ASSOCIATION: ./NonIdentityDocumentUploadRequest.yaml
STATE_REGISTRY_EXCERPT: ./NonIdentityDocumentUploadRequest.yaml
GOOD_STANDING_CERTIFICATE: ./NonIdentityDocumentUploadRequest.yaml
INFORMATION_STATEMENT: ./NonIdentityDocumentUploadRequest.yaml
INCUMBENCY_CERTIFICATE: ./NonIdentityDocumentUploadRequest.yaml
BUSINESS_LICENSE: ./NonIdentityDocumentUploadRequest.yaml
SHAREHOLDER_REGISTER: ./NonIdentityDocumentUploadRequest.yaml
POWER_OF_ATTORNEY: ./NonIdentityDocumentUploadRequest.yaml
UTILITY_BILL: ./NonIdentityDocumentUploadRequest.yaml
ELECTRICITY_BILL: ./NonIdentityDocumentUploadRequest.yaml
RENT_OR_LEASE_AGREEMENT: ./NonIdentityDocumentUploadRequest.yaml
DIRECTOR_REGISTRY: ./NonIdentityDocumentUploadRequest.yaml
TRUST_AGREEMENT: ./NonIdentityDocumentUploadRequest.yaml
STATE_COMPANY_REGISTRY: ./NonIdentityDocumentUploadRequest.yaml
PARTNERSHIP_CONTROL_AGREEMENT: ./NonIdentityDocumentUploadRequest.yaml
PARTNERSHIP_AGREEMENT: ./NonIdentityDocumentUploadRequest.yaml
SELFIE: ./NonIdentityDocumentUploadRequest.yaml
OTHER: ./NonIdentityDocumentUploadRequest.yaml
allOf:
title: Document Upload Request
description: Upload a verification document.
allOf:
Prompt To Fix With AI
This is a comment left during a code review.
Path: openapi/components/schemas/documents/DocumentUploadRequest.yaml
Line: 1-2

Comment:
The `description` field was dropped during the revert. The old `DocumentUploadRequest` had `description: Upload a verification document.`. Without it, rendered API docs (Mintlify/Redocly) will show no description for this schema, which hurts discoverability.

```suggestion
title: Document Upload Request
description: Upload a verification document.
allOf:
```

How can I resolve this? If you propose a fix, please make it concise.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Fix in Claude Code

Comment on lines 1 to +2
title: Document Replace Request
description: Replace an existing document.
oneOf:
- $ref: ./IdentityDocumentReplaceRequest.yaml
- $ref: ./NonIdentityDocumentReplaceRequest.yaml
discriminator:
propertyName: documentType
mapping:
PASSPORT: ./IdentityDocumentReplaceRequest.yaml
DRIVERS_LICENSE: ./IdentityDocumentReplaceRequest.yaml
NATIONAL_ID: ./IdentityDocumentReplaceRequest.yaml
PROOF_OF_ADDRESS: ./NonIdentityDocumentReplaceRequest.yaml
BANK_STATEMENT: ./NonIdentityDocumentReplaceRequest.yaml
TAX_RETURN: ./NonIdentityDocumentReplaceRequest.yaml
CERTIFICATE_OF_INCORPORATION: ./NonIdentityDocumentReplaceRequest.yaml
ARTICLES_OF_INCORPORATION: ./NonIdentityDocumentReplaceRequest.yaml
ARTICLES_OF_ASSOCIATION: ./NonIdentityDocumentReplaceRequest.yaml
STATE_REGISTRY_EXCERPT: ./NonIdentityDocumentReplaceRequest.yaml
GOOD_STANDING_CERTIFICATE: ./NonIdentityDocumentReplaceRequest.yaml
INFORMATION_STATEMENT: ./NonIdentityDocumentReplaceRequest.yaml
INCUMBENCY_CERTIFICATE: ./NonIdentityDocumentReplaceRequest.yaml
BUSINESS_LICENSE: ./NonIdentityDocumentReplaceRequest.yaml
SHAREHOLDER_REGISTER: ./NonIdentityDocumentReplaceRequest.yaml
POWER_OF_ATTORNEY: ./NonIdentityDocumentReplaceRequest.yaml
UTILITY_BILL: ./NonIdentityDocumentReplaceRequest.yaml
ELECTRICITY_BILL: ./NonIdentityDocumentReplaceRequest.yaml
RENT_OR_LEASE_AGREEMENT: ./NonIdentityDocumentReplaceRequest.yaml
DIRECTOR_REGISTRY: ./NonIdentityDocumentReplaceRequest.yaml
TRUST_AGREEMENT: ./NonIdentityDocumentReplaceRequest.yaml
STATE_COMPANY_REGISTRY: ./NonIdentityDocumentReplaceRequest.yaml
PARTNERSHIP_CONTROL_AGREEMENT: ./NonIdentityDocumentReplaceRequest.yaml
PARTNERSHIP_AGREEMENT: ./NonIdentityDocumentReplaceRequest.yaml
SELFIE: ./NonIdentityDocumentReplaceRequest.yaml
OTHER: ./NonIdentityDocumentReplaceRequest.yaml
allOf:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 Same as DocumentUploadRequest — the description field was removed during the revert. Without it, rendered docs will show no description for this schema.

Suggested change
title: Document Replace Request
description: Replace an existing document.
oneOf:
- $ref: ./IdentityDocumentReplaceRequest.yaml
- $ref: ./NonIdentityDocumentReplaceRequest.yaml
discriminator:
propertyName: documentType
mapping:
PASSPORT: ./IdentityDocumentReplaceRequest.yaml
DRIVERS_LICENSE: ./IdentityDocumentReplaceRequest.yaml
NATIONAL_ID: ./IdentityDocumentReplaceRequest.yaml
PROOF_OF_ADDRESS: ./NonIdentityDocumentReplaceRequest.yaml
BANK_STATEMENT: ./NonIdentityDocumentReplaceRequest.yaml
TAX_RETURN: ./NonIdentityDocumentReplaceRequest.yaml
CERTIFICATE_OF_INCORPORATION: ./NonIdentityDocumentReplaceRequest.yaml
ARTICLES_OF_INCORPORATION: ./NonIdentityDocumentReplaceRequest.yaml
ARTICLES_OF_ASSOCIATION: ./NonIdentityDocumentReplaceRequest.yaml
STATE_REGISTRY_EXCERPT: ./NonIdentityDocumentReplaceRequest.yaml
GOOD_STANDING_CERTIFICATE: ./NonIdentityDocumentReplaceRequest.yaml
INFORMATION_STATEMENT: ./NonIdentityDocumentReplaceRequest.yaml
INCUMBENCY_CERTIFICATE: ./NonIdentityDocumentReplaceRequest.yaml
BUSINESS_LICENSE: ./NonIdentityDocumentReplaceRequest.yaml
SHAREHOLDER_REGISTER: ./NonIdentityDocumentReplaceRequest.yaml
POWER_OF_ATTORNEY: ./NonIdentityDocumentReplaceRequest.yaml
UTILITY_BILL: ./NonIdentityDocumentReplaceRequest.yaml
ELECTRICITY_BILL: ./NonIdentityDocumentReplaceRequest.yaml
RENT_OR_LEASE_AGREEMENT: ./NonIdentityDocumentReplaceRequest.yaml
DIRECTOR_REGISTRY: ./NonIdentityDocumentReplaceRequest.yaml
TRUST_AGREEMENT: ./NonIdentityDocumentReplaceRequest.yaml
STATE_COMPANY_REGISTRY: ./NonIdentityDocumentReplaceRequest.yaml
PARTNERSHIP_CONTROL_AGREEMENT: ./NonIdentityDocumentReplaceRequest.yaml
PARTNERSHIP_AGREEMENT: ./NonIdentityDocumentReplaceRequest.yaml
SELFIE: ./NonIdentityDocumentReplaceRequest.yaml
OTHER: ./NonIdentityDocumentReplaceRequest.yaml
allOf:
title: Document Replace Request
description: Replace an existing document.
allOf:
Prompt To Fix With AI
This is a comment left during a code review.
Path: openapi/components/schemas/documents/DocumentReplaceRequest.yaml
Line: 1-2

Comment:
Same as `DocumentUploadRequest` — the `description` field was removed during the revert. Without it, rendered docs will show no description for this schema.

```suggestion
title: Document Replace Request
description: Replace an existing document.
allOf:
```

How can I resolve this? If you propose a fix, please make it concise.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Fix in Claude Code

@wuvictor-95 wuvictor-95 merged commit 46282d0 into main May 28, 2026
8 of 9 checks passed
@wuvictor-95 wuvictor-95 deleted the revert-split-document-upload branch May 28, 2026 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-change Introduces a breaking change to the OpenAPI spec

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants