diff --git a/docs/package-lock.json b/docs/package-lock.json index bf3b5c7..dda74ba 100644 --- a/docs/package-lock.json +++ b/docs/package-lock.json @@ -734,6 +734,13 @@ "ajv": "4.11.8 - 6" } }, + "node_modules/better-ajv-errors/node_modules/core-js": { + "version": "2.6.12", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz", + "integrity": "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==", + "deprecated": "core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.", + "hasInstallScript": true + }, "node_modules/binary-extensions": { "version": "1.13.0", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.13.0.tgz", @@ -1316,10 +1323,14 @@ } }, "node_modules/core-js": { - "version": "2.6.5", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.5.tgz", - "integrity": "sha512-klh/kDpwX8hryYL14M9w/xei6vrv6sE8gTHDG7/T/+SEovB/G4ejwcfE/CBzO6Edsu+OETZMZ3wcX/EjUkrl5A==", - "deprecated": "core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js." + "version": "3.38.1", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.38.1.tgz", + "integrity": "sha512-OP35aUorbU3Zvlx7pjsFdu1rGNnD4pgw/CWoYzRY3t2EzoVT7shKHY1dlAy3f41cGIO7ZDPQimhGFTlEYkG/Hw==", + "hasInstallScript": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } }, "node_modules/core-util-is": { "version": "1.0.2", @@ -6255,17 +6266,6 @@ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, - "node_modules/swagger2openapi/node_modules/core-js": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.9.0.tgz", - "integrity": "sha512-PyFBJaLq93FlyYdsndE5VaueA9K5cNB7CGzeCj191YYLhkQM0gdZR2SKihM70oF0wdqKSKClv/tEBOpoRmdOVQ==", - "deprecated": "core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.", - "hasInstallScript": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/core-js" - } - }, "node_modules/swagger2openapi/node_modules/get-caller-file": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", @@ -6968,6 +6968,13 @@ "optionalDependencies": { "commander": "^2.7.1" } + }, + "node_modules/z-schema/node_modules/core-js": { + "version": "2.6.12", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz", + "integrity": "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==", + "deprecated": "core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.", + "hasInstallScript": true } } } diff --git a/docs/spec/paths/integrations@geo-forms-svc@v1@form@submit.yaml b/docs/spec/paths/integrations@geo-forms-svc@v1@form@submit.yaml index 4d66242..2eaa1e6 100644 --- a/docs/spec/paths/integrations@geo-forms-svc@v1@form@submit.yaml +++ b/docs/spec/paths/integrations@geo-forms-svc@v1@form@submit.yaml @@ -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. diff --git a/docs/spec/paths/integrations@geo-forms-svc@v1@status@last.yaml b/docs/spec/paths/integrations@geo-forms-svc@v1@status@last.yaml index 02f9464..f3fc14c 100644 --- a/docs/spec/paths/integrations@geo-forms-svc@v1@status@last.yaml +++ b/docs/spec/paths/integrations@geo-forms-svc@v1@status@last.yaml @@ -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: diff --git a/internal/service/requests/submit_form.go b/internal/service/requests/submit_form.go index 1fbad4f..e1ada6d 100644 --- a/internal/service/requests/submit_form.go +++ b/internal/service/requests/submit_form.go @@ -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()