Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kish1n committed Sep 12, 2024
1 parent 9e0abac commit 16709d9
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 21 deletions.
37 changes: 22 additions & 15 deletions docs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
post:
tags:
- User form
summary: Submit user answers
summary: Legacy submit user answers
description: |
Send user answers and return their current status.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ get:
properties:
data:
$ref: '#/components/schemas/Form'
400:
$ref: '#/components/responses/invalidParameter'
401:
$ref: '#/components/responses/invalidAuth'
404:
$ref: '#/components/responses/notFound'
500:
Expand Down
2 changes: 1 addition & 1 deletion internal/service/requests/submit_form.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func NewSubmitForm(r *http.Request) (req resources.FormResponse, err error) {
"data/attributes/phone": validation.Validate(req.Data.Attributes.Phone, validation.Required),
"data/attributes/email": validation.Validate(req.Data.Attributes.Email, validation.Required, validation.Match(emailRegexp)),
"data/attributes/image": validation.Validate(req.Data.Attributes.Image, validation.Required, is.URL),
"data/attributes/paspport_image": validation.Validate(req.Data.Attributes.PassportImage, is.URL),
"data/attributes/passport_image": validation.Validate(req.Data.Attributes.PassportImage, is.URL),
}

return req, errs.Filter()
Expand Down

0 comments on commit 16709d9

Please sign in to comment.