Closed maxwang001 closed 4 months ago
Hi @maxwang001 thanks for bringing this up.
You're right, in VDA5050 version 2.0, the information
part of the state message is optional, so we are going to fix that.
The error
part however (and in version 1.1 both error
and information
), is not optional, so that will remain as is.
Hi @sebo001, thanks for the review. I have created new pull request for this
@maxwang001 Thank you for offering that but we are already in the process of making the change.
Understood and will close pull request.
Affected version
v0.19.0
Steps to reproduce
Expected behaviour
Since "errors" and "Information" are optional, no exception happens in function toErrorPropertyValue / toInfoPropertyValue in Statemappings.java
Actual behaviour
Add the judge to return empty if state.getInformation() / state.getErrors() are null or isEmpty.
Additional information