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

Fix capabilities version, upgrade SDK to v0.1.4, fix Clippy lints #21

Merged
merged 3 commits into from
Jul 31, 2024

Conversation

daniel-chambers
Copy link
Contributor

This PR fixes a fairly significant bug in the capabilities response, where the connector returns an invalid version. It returns a semver range, rather than just a semantic version, which is against the spec. It's probably a holdover from an old version of the spec that never got changed.

This has caused issues now that engine actually looks at the value in that property.

The PR also updates the NDC Rust SDK to the latest easily updatable version (v0.1.4). A more recent version brings in new newtypes that I'm not prepared to deal with for this small fix.

The PR also fixes all the various clippy lint warnings across the code (in separate commit for easier reviewing).

@daniel-chambers daniel-chambers self-assigned this Jul 31, 2024
@CLAassistant
Copy link

CLAassistant commented Jul 31, 2024

CLA assistant check
All committers have signed the CLA.


pub fn capabilities() -> models::CapabilitiesResponse {
models::CapabilitiesResponse {
version: "^0.1.1".to_string(),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was the boo boo. 😭

Copy link
Collaborator

@BenoitRanque BenoitRanque left a comment

Choose a reason for hiding this comment

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

This looks good, I appreciate it

@BenoitRanque BenoitRanque merged commit 56c6313 into main Jul 31, 2024
3 checks passed
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.

3 participants