You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
InternetGatewaySelector selects a gateway. It correctly has a required gateway field and optional project and vpc, representing the possibility of selecting by gateway ID, in which case neither of the parent identifiers can be included.
The selector struct (correct)
InternetGatewaySelector
selects a gateway. It correctly has a requiredgateway
field and optionalproject
andvpc
, representing the possibility of selecting by gateway ID, in which case neither of the parent identifiers can be included.omicron/nexus/types/src/external_api/params.rs
Lines 319 to 326 in adaa2ec
The endpoints
These two endpoints use
InternetGatewaySelector
as their query params to select a gateway. The fact thatomicron/nexus/external-api/src/lib.rs
Lines 2260 to 2274 in adaa2ec
omicron/nexus/external-api/src/lib.rs
Lines 2300 to 2314 in adaa2ec
The OpenAPI schema (wrong)
The
gateway
query param is optional, but it should not be.omicron/openapi/nexus.json
Lines 2685 to 2694 in adaa2ec
omicron/openapi/nexus.json
Lines 2895 to 2904 in adaa2ec
The TypeScript type generated accordingly
https://github.com/oxidecomputer/console/blob/653b572/app/api/__generated__/Api.ts#L4541-L4548
What a required query param looks like
omicron/openapi/nexus.json
Lines 1824 to 1840 in adaa2ec
An unrelated endpoint with the same issue
This suggests it might have something to do with nesting it in the pagination thing.
omicron/nexus/external-api/src/lib.rs
Lines 1751 to 1760 in adaa2ec
The text was updated successfully, but these errors were encountered: