Failed validations for /v2/swiss-qr-code/validate and /v2/v2/swiss-payments-code/validate should return HTTP response 422

Description

All other validation methods in the REST interface respond with 422 when validation fails. Only those two respond with 200.

Environment

None

Activity

Show:
Christian Studer
June 19, 2020, 3:09 PM

TODO (From PR-Review)

  • Make parser tolerant to white space in up to 10 lines at the end of the SPC.

  • Move sample files to qrinvoice-tests/qrinvoice-tests-resources

  • Switch to sample file in RestV2SwissPaymentsCodeTest.java

Assignee

Claude Gex

Reporter

Christian Studer

Labels

None

Components

Fix versions

Priority

Medium
Configure