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
In Nexus, if you try to select something by { path: { router: '<id>' }, query: { project, vpc } }, the API will 400 because parent selectors are not allowed when the thing is specified by ID. Our validators don't error because the OpenAPI schema can't represent the valid combinations properly. But we might be able to do something sneaky here. Worst case, we can do something by hand on the console side. But ew.
Decided to do this manually in the console since we already have a manually-implemented set of DB lookup functions that are a good spot for it. oxidecomputer/console#2396
In Nexus, if you try to select something by
{ path: { router: '<id>' }, query: { project, vpc } }
, the API will 400 because parent selectors are not allowed when the thing is specified by ID. Our validators don't error because the OpenAPI schema can't represent the valid combinations properly. But we might be able to do something sneaky here. Worst case, we can do something by hand on the console side. But ew.oxide.ts/oxide-openapi-gen-ts/src/client/msw-handlers.ts
Lines 116 to 140 in 089f03a
The text was updated successfully, but these errors were encountered: