Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions open-api/rest-catalog-open-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2293,6 +2293,7 @@ components:
type: boolean
doc:
type: string
nullable: true
Comment on lines 2294 to +2296
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.

isn't this optional ?

if (field.doc() != null) {
generator.writeStringField(DOC, field.doc());
}

while sending to server this is omitted ? i know while reading i.e fromJson we are null tolerant but i think its fine

Copy link
Copy Markdown
Author

@Amneet13 Amneet13 Apr 21, 2026

Choose a reason for hiding this comment

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

@singhpk234 Thanks for the review! You're right that the Iceberg serializer omits doc when it's null. However, we ran into a real-world case where an Iceberg table is created on top of a Paimon table — in that scenario doc is explicitly sent as null (not omitted) in the response. This causes deserialization failures in clients auto-generated from the OpenAPI spec since the spec didn't allow null. Adding nullable: true makes the spec tolerant of both cases — absent and explicitly null — which is the safer contract for external clients.

initial-default:
$ref: "#/components/schemas/PrimitiveTypeValue"
write-default:
Expand Down
Loading