Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[nexus] remove views::SledProvisionState::Unknown #4608

Merged

Conversation

sunshowers
Copy link
Contributor

@sunshowers sunshowers commented Dec 4, 2023

This doesn't quite work as expected:

  • As an input type, if an unknown SledProvisionState is specified, we immediately produce an error as soon as we enter the HTTP entrypoint. There's no functional difference between that and producing an error at deserialization time.
  • As an output type, progenitor doesn't support #[serde(other)] so the unknown type doesn't work.

Created using spr 1.3.5
@sunshowers sunshowers requested review from smklein and ahl December 4, 2023 23:01
@sunshowers sunshowers mentioned this pull request Dec 4, 2023
11 tasks
Copy link
Contributor

@ahl ahl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! FWIW while it's true that progenitor doesn't do anything special with regard to unknown variants, it also doesn't choke on them! I think we might want the json schema to reflect the unknown/catchall nature of a variant like this if we were to do this in the future.

@sunshowers sunshowers enabled auto-merge (squash) December 4, 2023 23:07
@sunshowers sunshowers merged commit 5c90213 into main Dec 5, 2023
22 checks passed
@sunshowers sunshowers deleted the sunshowers/spr/nexus-remove-viewssledprovisionstateunknown branch December 5, 2023 00:09
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.

2 participants