Skip to content

Commit

Permalink
Spec: Clarify in REST spec that server implementations of commit endp…
Browse files Browse the repository at this point in the history
…oints must fail with 400 if any unknown updates or requirements are received
  • Loading branch information
amogh-jahagirdar committed Aug 1, 2024
1 parent 4a0ae22 commit 07bf82c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion open-api/rest-catalog-open-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,8 @@ paths:
Commits have two parts, requirements and updates. Requirements are assertions that will be validated
before attempting to make and commit changes. For example, `assert-ref-snapshot-id` will check that a
named ref's snapshot ID has a certain value.
Server implementations are required to fail with a 400 status code
if any unknown updates or requirements are received.


Updates are changes to make to table metadata. For example, after asserting that the current main ref
Expand Down Expand Up @@ -986,7 +988,8 @@ paths:
A commit for a single table consists of a table identifier with requirements and updates.
Requirements are assertions that will be validated before attempting to make and commit changes.
For example, `assert-ref-snapshot-id` will check that a named ref's snapshot ID has a certain value.

Server implementations are required to fail with a 400 status code
if any unknown updates or requirements are received.

Updates are changes to make to table metadata. For example, after asserting that the current main ref
is at the expected snapshot, a commit may add a new child snapshot and set the ref to the new
Expand Down

0 comments on commit 07bf82c

Please sign in to comment.