Skip to content

Handler needs to properly escape characters in the Status description #60

@ddobrin

Description

@ddobrin

Handler needs to properly escape characters in the Status description, before sending it to the caller, in case of errors.

Ex.:
{ "error" : {"statusCode":400,"code":"ERR11004","message":"VALIDATOR_SCHEMA","description":"Schema Validation Error - $.match.core.person.demographics.dateOfBirth: does not match the date pattern ^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(0?[1-9]|[12][0-9]|3[01])$","severity":"ERROR"} }

Description, which is free-form, should escape the characters: note the \
{ "error" : {"statusCode":400,"code":"ERR11004","message":"VALIDATOR_SCHEMA","description":"Schema Validation Error - $.match.core.person.demographics.dateOfBirth: does not match the date pattern ^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(0?[1-9]|[12][0-9]|3[01])$","severity":"ERROR"} }

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions