serverlessworkflow / sdk-java

Java SDK for Serverless Workflow
http://serverlessworkflow.io
Apache License 2.0
77 stars 46 forks source link

Wrong ISO8601 durations #75

Closed cdavernas closed 3 years ago

cdavernas commented 3 years ago

What happened:

@tsurdilo Following our discussion on the spec repo, it configured my unit tests to run the examples.

My tests fail with the booklending.json file, because an ISO 8601 duration is I believe in an invalid format: PT2W instead of P2W. Am I correct to assume it is a typo?

What you expected to happen:

When ISO 8601 values specify a period of time, they should be prefixed with 'P' instead of 'PT'

How to reproduce it:

Read the 'timeDelay' property with an ISO 8601 duration parser.

tsurdilo commented 3 years ago

@Neuroglia yeah its a typo, sorry. Will fix asap