When using Quarkus Flow and trying to define the following workflow via YAML:
document:
dsl: 1.0.0
namespace: guru-quarkus
name: processPhotoWorkflowYaml
version: 0.1.0
use:
authentications:
flowPhotosAuth:
oauth2:
authority: https://auth.flowphotos.io/realms/flowphotos
grant: client_credentials
client:
id: '${ $secret.photoService.clientId }'
secret: '${ $secret.photoService.clientSecret }'
endpoints:
token: /protocol/openid-connect/token
do:
- processPhoto:
call: http
with:
method: post
endpoint:
uri: 'https://photos.internal.flowphotos.io/api/photos/{photoId}/process'
authentication:
use: flowPhotosAuth
- notifyPhotoProcessed:
call: http
with:
method: post
endpoint:
uri: https://notifications.internal.flowphotos.io/api/notifications
authentication:
use: flowPhotosAuth
I received the following stacktrace:
Caused by: java.lang.IllegalArgumentException: Both object and str are null
The specification says that body is not a required field: https://github.com/open-workflow-specification/specification/blob/main/dsl-reference.md#http-call.
Expected behavior
Build the workflow via YAML without exception when setting an HTTP call (call: http) without body (with.body) when using POST, PATCH or PUT.
When using Quarkus Flow and trying to define the following workflow via YAML:
I received the following stacktrace:
The specification says that body is not a required field: https://github.com/open-workflow-specification/specification/blob/main/dsl-reference.md#http-call.
Expected behavior
Build the workflow via YAML without exception when setting an HTTP call (
call: http) without body (with.body) when usingPOST,PATCHorPUT.