New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ddobrin opened this Issue Oct 3, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@ddobrin
Contributor

ddobrin commented Oct 3, 2018

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"} }

@ddobrin ddobrin self-assigned this Oct 3, 2018

@stevehu stevehu closed this in ffc1e12 Oct 5, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment