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

Update dropshot and openapiv3 deps #4488

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

pfmooney
Copy link
Contributor

The json specification generated by the updated openapiv3 is ordered slightly differently, but not in a way that matters to anything but "brute force" diff checks like expectorate. This updates the dependency and applies the reordering to the recorded OpenAPI specs.

The json specification generated by the updated openapiv3 is ordered
slightly differently, but not in a way that matters to anything but
"brute force" diff checks like expectorate.  This updates the dependency
and applies the reordering to the recorded OpenAPI specs.
Copy link
Contributor

@leftwo leftwo left a comment

Choose a reason for hiding this comment

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

I think what you are trying to do is have


Usage: nexus <CONFIG_FILE_PATH>
Usage: nexus [OPTIONS] [CONFIG_FILE_PATH]
Copy link
Contributor

Choose a reason for hiding this comment

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

I think what is supported is:
nexus -i
or
nexus -o
or
nexus <config_file_path>

I don't know how to make Clap enforce that though, and what you have here essentially does the same
thing anyway.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Frankly, I'd like to change nexus to operate like nexus run <cfg> or nexus openapi like all (?) of the other openapi servers in omicron. Updating this was a stop-gap so I could get it to emit openapi docs for me without having to rustle up a valid configuration.

@pfmooney pfmooney enabled auto-merge (squash) November 13, 2023 22:49
@pfmooney pfmooney merged commit 6bbaa80 into oxidecomputer:main Nov 13, 2023
17 checks passed
@pfmooney pfmooney deleted the openapi-update branch November 13, 2023 23:23
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