mchades commented on code in PR #15028:
URL: https://github.com/apache/gravitino/pull/15028#discussion_r4600046319
##########
docs/open-api/policies.yaml:
##########
@@ -427,8 +474,20 @@ components:
IcebergOrphanFileRemovalContent:
type: object
- description: Table-level orphan cleanup options. Scheduling is
configured separately.
+ description: >
+ Table-level orphan cleanup options with TMS execution peers such as
`timeTrigger`.
+ `commitTrigger=true` is rejected for this policy type. On
updateContent, newContent
+ fully replaces the previous content; omitting a peer clears it.
+ additionalProperties: false
properties:
+ <<: *policy-execution-peer-properties
+ # Explicit key wins over the YAML merge: orphan cleanup never accepts
commitTrigger=true.
+ commitTrigger:
+ type: boolean
+ nullable: true
+ enum: [false]
Review Comment:
In OAS 3.0 `nullable` only widens `type` — it doesn't extend `enum`, so
`null` is still rejected here since it's not in the enum values (strict
validators will fail `commitTrigger: null`). If "false or omitted" is the
intent, drop `nullable: true` so the pair isn't contradictory; if the schema
should accept explicit `null` like the other peers (the server treats
`commitTrigger: null` as unset), use `enum: [false, null]`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]