Skip to content

refactor(no-ticket): Switch metadata client to /v2/metadata/ and add validation endpoint#289

Open
BartoszBlizniak wants to merge 2 commits intomasterfrom
no-ticket-update-endpoint-structure
Open

refactor(no-ticket): Switch metadata client to /v2/metadata/ and add validation endpoint#289
BartoszBlizniak wants to merge 2 commits intomasterfrom
no-ticket-update-endpoint-structure

Conversation

@BartoszBlizniak
Copy link
Copy Markdown
Member

Description

  • Re-routes the v2 metadata API client off /v2/packages/{slug}/metadata/... onto the new /v2/metadata/packages/{slug}/...
  • Adds validation endpoint

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Refactoring
  • Other (please describe)

Additional Notes

n/a

Copilot AI review requested due to automatic review settings May 7, 2026 15:51
@BartoszBlizniak BartoszBlizniak requested a review from a team as a code owner May 7, 2026 15:51
@BartoszBlizniak BartoszBlizniak changed the title Switch metadata client to /v2/metadata/ and add validation endpoint refactor(no-ticket): Switch metadata client to /v2/metadata/ and add validation endpoint May 7, 2026
@BartoszBlizniak BartoszBlizniak self-assigned this May 7, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

  • Updates the CLI’s v2 metadata client to use the new /v2/metadata/packages/{slug}/... route layout and introduces a client helper for the new validation endpoint.

Changes:

  • Re-routed list/get/update/delete metadata calls from /v2/packages/{slug}/metadata/... to /v2/metadata/packages/{slug}/....
  • Updated unit tests to match the new URL shapes.
  • Added validate_metadata() helper for POST /v2/metadata/validate/.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
cloudsmith_cli/core/api/metadata.py Switches request path construction to the new metadata base route; adds validate_metadata() endpoint helper.
cloudsmith_cli/core/tests/test_metadata.py Updates URL constants used by tests to match the new v2 metadata route layout.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread cloudsmith_cli/core/api/metadata.py
imduffy15
imduffy15 previously approved these changes May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants