fix: point two requests at the fixtures that make them reachable - #38
Merged
Conversation
Switch Driver Organization sent {{driver_id}} and {{organization_id}}.
That is the driver Create a Driver made — who belongs to one organization — and
the organization they are already in. switchOrganization rejects both: "Driver
is already on this organizations session." It now uses a driver that belongs to
more than one, switching to the other.
The description states the precondition, which was previously invisible: the
driver must already belong to the target, and it must not be their current one.
List Network Stores authenticated with the store key.
The endpoint requires a NETWORK session and rejects a store key with "Stores
cannot have stores!". It now sends a network key, and says so.
Both variables come from fixtures the contract run seeds, because neither a
second-organization membership nor a network can be created through the public
API (fleetbase/fleetbase#603).
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Switch Driver OrganizationIt sent
{{driver_id}}and{{organization_id}}— the driverCreate a Drivermade, who belongs to one organization, and the organization they are already in.switchOrganizationrejects both conditions: "Driver is already on this organizations session."It now uses a driver that belongs to more than one, switching to the other.
The description now states the precondition, which was previously invisible in the published reference: the driver must already belong to the target organization, and it must not be their current one. A driver created through
POST /driversbelongs to a single organization, so the example says why it uses a different one.List Network StoresIt authenticated with the collection's store key. The endpoint requires a network session and rejects a store key with "Stores cannot have stores!". It now sends a network key via a request-level
Authorizationheader, and the description explains the requirement.Both variables come from fixtures the contract run seeds — neither a second-organization membership nor a network can be created through the public API (fleetbase/fleetbase#603).
🤖 Generated with Claude Code