Партии: оптимистичная блокировка (version) — устаревшие правки/отмена отклоняются (фикс гонки завершить-vs-отменить)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-17 22:39:20 +03:00
co-authored by Claude Opus 4.8
parent eb34714868
commit 16452f7bbe
8 changed files with 148 additions and 13 deletions
+9 -1
View File
@@ -1507,6 +1507,8 @@ export interface components {
win_reason: "objectives" | "worlds" | "plastic" | "resources";
/** Overall Comment */
overall_comment?: string | null;
/** Expected Version */
expected_version?: string | null;
};
/** MatchFinishParticipant */
MatchFinishParticipant: {
@@ -1627,6 +1629,8 @@ export interface components {
* @default false
*/
can_modify: boolean;
/** Version */
version: string;
/**
* Participants
* @default []
@@ -1648,6 +1652,8 @@ export interface components {
win_reason?: ("objectives" | "worlds" | "plastic" | "resources") | null;
/** Participants */
participants?: components["schemas"]["ParticipantInput"][] | null;
/** Expected Version */
expected_version?: string | null;
};
/** MeRead */
MeRead: {
@@ -2882,7 +2888,9 @@ export interface operations {
};
delete_match_api_matches__match_id__delete: {
parameters: {
query?: never;
query?: {
expected_version?: string | null;
};
header?: never;
path: {
match_id: number;