Skip to content

Add struct validation for redirect_uris to match indexing#703

Merged
rickyrombo merged 2 commits intomainfrom
mjp-dev-apps-validation
Mar 9, 2026
Merged

Add struct validation for redirect_uris to match indexing#703
rickyrombo merged 2 commits intomainfrom
mjp-dev-apps-validation

Conversation

@rickyrombo
Copy link
Contributor

No description provided.

Copy link
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

Adds explicit request/body and OpenAPI constraints for redirect_uris so API validation aligns with downstream/indexing expectations.

Changes:

  • Add struct-tag validation to CreateDeveloperAppRequest.RedirectURIs and UpdateDeveloperAppRequest.RedirectURIs (max 50 entries; each max 2000 chars).
  • Update Swagger schemas to document/enforce the same limits (maxItems: 50, maxLength: 2000).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
api/v1_users_developer_apps.go Adds validator constraints to redirect_uris in create/update developer app request structs.
api/swagger/swagger-v1.yaml Documents the same redirect_uris limits in the OpenAPI schema (create, update, and developer_app schemas).

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

@rickyrombo rickyrombo merged commit 72e73c3 into main Mar 9, 2026
9 checks passed
@rickyrombo rickyrombo deleted the mjp-dev-apps-validation branch March 9, 2026 22:53
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