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

[pub] Use official version endpoint for pub-service #9802

Merged
merged 4 commits into from
Dec 12, 2023

Conversation

sigurdm
Copy link
Contributor

@sigurdm sigurdm commented Dec 11, 2023

The packages/<packageName>.json endpoint is obsolete and might go away.

Copy link
Contributor

github-actions bot commented Dec 11, 2023

Warnings
⚠️ This PR modified service code for pub but not its test code.
That's okay so long as it's refactoring existing code.
Messages
📖 ✨ Thanks for your contribution to Shields, @sigurdm!

Generated by 🚫 dangerJS against 4da8f3f

@chris48s
Copy link
Member

Thanks. The reason the tests are failing is because we also need to update the schema to account for the new response format:

const schema = Joi.object({
versions: Joi.array().items(Joi.string()).required(),
}).required()

At the moment we're rejecting the API responses because they don't match the schema. Could you update?

@chris48s chris48s added the service-badge Accepted and actionable changes, features, and bugs label Dec 11, 2023
@sigurdm
Copy link
Contributor Author

sigurdm commented Dec 12, 2023

At the moment we're rejecting the API responses because they don't match the schema. Could you update?

Ah of course

Done!

@chris48s
Copy link
Member

I pushed one last edit as it was easier than another round of back-and-forth.
Merging - thanks 👍

@chris48s chris48s added this pull request to the merge queue Dec 12, 2023
Merged via the queue into badges:master with commit 407fe39 Dec 12, 2023
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service-badge Accepted and actionable changes, features, and bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants