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: add request body schema in update segment endpoint #8085

Merged
merged 2 commits into from
Sep 5, 2024

Conversation

nunogois
Copy link
Member

@nunogois nunogois commented Sep 4, 2024

https://linear.app/unleash/issue/2-2592/updateimprove-a-segment-via-api-call

Related to #7987

This does not make the endpoint necessarily better - It's still a PUT that acts as a PUT in some ways (expects specific required fields to be present, resets the project to null if it's not included in the body) and a PATCH in others (ignores most fields if they're not included in the body). We need to have a more in-depth discussion about developing long-term strategies for our API and respective OpenAPI spec.

However this at least includes the proper schema for the request body, which is slightly better than before.

Copy link

vercel bot commented Sep 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Sep 4, 2024 4:26pm
unleash-monorepo-frontend ⬜️ Ignored (Inspect) Visit Preview Sep 4, 2024 4:26pm

Copy link
Contributor

github-actions bot commented Sep 4, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

Copy link
Contributor

@gastonfournier gastonfournier left a comment

Choose a reason for hiding this comment

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

Great ✨!

@nunogois nunogois merged commit 7bfc8b2 into main Sep 5, 2024
7 checks passed
@nunogois nunogois deleted the fix-update-segment-add-request-body-schema branch September 5, 2024 07:17
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