Skip to content

Commit 5c331ea

Browse files
Follow the sponsor directory into the pinned API error schema
The #188 merge added SponsorRevisionConflict to the APIError result envelope (and to the published admin OpenAPI document) but missed the pinned oneOf in test_runtime_credentials, reddening django on main in the scheduled run at c356abe. The pin now lists the real payload. Refs #193
1 parent be0f565 commit 5c331ea

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

management_api/tests/test_runtime_credentials.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,9 @@ def test_openapi_declares_only_real_runtime_lifecycle_contracts(self) -> None:
372372
"oneOf": [
373373
{"$ref": "#/components/schemas/CredentialMetadata"},
374374
{"$ref": "#/components/schemas/SiteSettingRevisionConflict"},
375+
# The sponsor directory's revision conflicts ride the same
376+
# error envelope (#188); the pin follows the real payload.
377+
{"$ref": "#/components/schemas/SponsorRevisionConflict"},
375378
]
376379
},
377380
)

0 commit comments

Comments
 (0)