Skip to content

Commit

Permalink
PISTON-1082: Crossbar validation errors with the same top level key w…
Browse files Browse the repository at this point in the history
…ill (#6699)

no longer overwrite each other but instead will now merge the keys where
possible
  • Loading branch information
bradfordben authored Jun 15, 2021
1 parent defd01e commit 70372ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion applications/crossbar/src/cb_context.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,7 @@ add_validation_error(Property, Code, Message, Context) ->
)
),
ErrorsJObj = validation_errors(Context),
Context#cb_context{validation_errors=kz_json:merge_jobjs(ErrorJObj, ErrorsJObj)
Context#cb_context{validation_errors=kz_json:merge(ErrorJObj, ErrorsJObj)
,resp_status='error'
,resp_error_code=ErrorCode
,resp_data=kz_json:new()
Expand Down

0 comments on commit 70372ba

Please sign in to comment.