zowe / sample-spring-boot-api-service

Zowe REST API service SDK and sample API service that integrates with Zowe API Mediation Layer
Other
26 stars 18 forks source link

Setting messageReason and messageAction #53

Closed dkelosky closed 4 years ago

dkelosky commented 4 years ago

Because I could not find a way to supply optional properties like messageReason and messageAction to the error-handling capabilities supplied by the commons package, I simply have not used them.

Can you confirm if this is true?

Reported by @gejohnston

dkelosky commented 4 years ago

@plavjanik the optional message info here - how are things like messageReason set?

plavjanik commented 4 years ago

Hello Gene and Dan,

the current implementation (migrated from the original SDK) does not read the messageReason and messageAction properties from the YAML files and there is no way how to add them to the message programmatically later.

I think that it makes sense to make it possible in the future. I mean both defining it in the YAML and updating programmatically.

I am starting to work on i18n (#39) and one part of it is to make possible to define these messages in other languages so I will start with adding these optional fields.

Best regards, Petr

plavjanik commented 4 years ago

63 adds support for these fields