Skip to content

Commit 3dbf0ba

Browse files
committed
Increase opportunity request character limit to 512 characters
1 parent 134715b commit 3dbf0ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/openapi/ImpactAPI-v1.0.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3487,7 +3487,7 @@
34873487
"type": "string",
34883488
"description": "The message which will be sent along with the volunteer profile. Leave blank for the default message.",
34893489
"minLength": 6,
3490-
"maxLength": 128,
3490+
"maxLength": 512,
34913491
"example": "Hi! I'd like to join your opportunity. Here is my profile:"
34923492
}
34933493
}

internal/core/handlers/opportunities/request_post.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
// RequestPost creates an opportunity request for a user on the specified opportunity.
1515
func RequestPost(opportunitiesService opportunities.Service, conversationsService conversations.Service) http.HandlerFunc {
1616
type request struct {
17-
Message string `json:"message" validate:"omitempty,min=12,max=128"`
17+
Message string `json:"message" validate:"omitempty,min=12,max=512"`
1818
}
1919
type response struct {
2020
Success bool `json:"success"`

0 commit comments

Comments
 (0)