Details
-
Task
-
Status: Closed (View Workflow)
-
P2
-
Resolution: Won't Do
-
None
-
-
Core: Platform
-
GBV
Description
It seems we have started using code as part of validation error in order to:
- make decisions based upon the presence of a specific validation error in the client
- facilitate localization of validation error messages in the client
See https://github.com/folio-org/raml/blob/raml1.0/schemas/error.schema
Is this intended to be the standard approach?
Does the UI currently use some of the existing examples?
If it is intended to be the standard approach, I believe there are some decisions we could need to make.
Potential Decisions
- Should all validation error messages be expected to have a unique code? (and if so, should this be part of the definition of done for backend stories?
- How should these codes be named?
- Are codes owned by interfaces or implementing modules?
- How do we avoid naming conflicts between modules?
- How does a client know what the set of potential unique errors are?
- If used for localisation, how does a client map parameterised errors to messages?
TestRail: Results
Attachments
Issue Links
- has to be done before
-
UIU-977 renewal failure messages are not internationalized
-
- Open
-
- relates to
-
CIRC-1146 Internationalize back-end failure messages
-
- In progress
-
-
FOLIO-671 Respond with descriptive information in consistent JSON on bad requests and server errors
-
- Closed
-
-
UIREQ-211 Make Request Policy Effective At Request Creation
-
- Closed
-
-
UIREQ-603 Internationalize back-end failure messages
-
- Closed
-
-
CIRC-476 Blocked patron can successfully place a request
-
- Closed
-
-
FOLIO-1965 API design for deletion prevention
-
- Closed
-