Skip to content

JsonQueryException when using FuncDSL.openapi #1303

@mcruzdev

Description

@mcruzdev

What happened:

We are facing a JsonQueryException exception when trying to add "http://localhost:8089/v2/swagger.json" as argument of FuncDSL.openapi().document("http://localhost:8089/v2/swagger.json") method.

What you expected to happen:
To build a Workflow without exception.

How to reproduce it:
Create a workflow:

        var w = FuncWorkflowBuilder.workflow("openapi-call-workflow")
                .tasks(
                        openapi()
                                // "http://localhost:8089/v2/swagger.json" can't be parsed -> JsonQueryException
                                .document("http://localhost:8089/v2/swagger.json")
                                .operation("findPetsByStatus")
                                .parameters(Map.of("status", "available"))
                )
                .build();

Anything else we need to know?:

Environment:

  • Specification version used:

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions