Skip to content

Spec drift: 4XX/5XX response keys and sort on list_server_types - #3

Merged
PaulGossen merged 2 commits into
mainfrom
fix/2-spec-drift
Nov 23, 2026
Merged

PaulGossen merged 2 commits into
mainfrom
fix/2-spec-drift

Conversation

@gosuccess-agent

Copy link
Copy Markdown

Closes #2

Changes

  • Refreshed resources/specs/cloud.spec.json: error responses are keyed 4XX/5XX instead of 4xx/5xx, and list_server_types and list_isos accept sort. Nothing else changed (checked by case-folding the keys and removing the two sort parameters: the result is identical to the previous snapshot).
  • SpecTest::testErrorEnvelope reads the error schema under 4XX.
  • The ServerTypes docblock names the sort filter. Filters were already passed through as query parameters, so no code changed.

Tests

  • composer check (php-cs-fixer, PHPStan, 706 unit tests) is green locally.
  • Not run: the integration tests against the live API. The client's requests and models are unchanged.

Rollout

  • No release needed: the published client behaves the same.
  • After the merge, the spec-drift workflow should pass again; it can be started by hand with workflow_dispatch.

Error responses are keyed 4XX and 5XX instead of 4xx and 5xx, and
list_server_types and list_isos accept a sort parameter. Nothing else changed.
The specification now keys error responses 4XX instead of 4xx. The
ServerTypes docblock also names the new sort filter.
@PaulGossen
PaulGossen merged commit 2375ac3 into main Nov 23, 2026
2 checks passed
@PaulGossen
PaulGossen deleted the fix/2-spec-drift branch November 23, 2026 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Spec drift: 4XX/5XX response keys and sort on list_server_types

1 participant