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

feat: cargo package service info fields and custom values #293

Merged
merged 4 commits into from
Jan 8, 2025

Conversation

mmalenic
Copy link
Member

@mmalenic mmalenic commented Jan 8, 2025

Closes #249

Changes

  • The service info now fills the version, name, id, description and documentationUrl from CARGO_PKG_* environment variables.
    • I've placed the <PACKAGE_NAME>/<PACKAGE_VERSION> string inside id, as this needs to default to something.
  • Add required service-info fields to response, and allow overriding defaults from config.
  • Custom values can be specified.
  • Bump rust-version because of Option::get_or_insert_default.

Note that I misread the service info spec before. Some fields are still always required, like id: https://editor.swagger.io/?url=https://raw.githubusercontent.com/ga4gh-discovery/ga4gh-service-info/develop/service-info.yaml

@mmalenic mmalenic self-assigned this Jan 8, 2025
@mmalenic mmalenic added the enhancement New feature or request label Jan 8, 2025
@mmalenic mmalenic requested a review from brainstorm January 8, 2025 00:48
@mmalenic mmalenic added this pull request to the merge queue Jan 8, 2025
Merged via the queue into main with commit 9dde560 Jan 8, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: add package and versions to service info
2 participants