Hi,
I've built a few of the kogito examples projects and some by using the maven archetype. My focus is on using quarkus and decision tables. It seems to be working very well.
The one issue I'm having is that the generated swagger UI will not show example values or example schema for the projects that I've created via the archetype. There is also no example value or schema shown for the output.
It shows the endpoints, but when I click "post", the resolver error pops up and there is no representation of the data types for the request or response.
If I enter appropriate structures for the DMN input and click Execute, the calls work fine - it just seems to be that the generated swagger-ui is incomplete.
The resolver errors and pop up are:
Resolver error at paths./calcMMValuationClass.post.requestBody.content.application/json.schema.$ref
Could not resolve reference: Not Found
Resolver error at
paths./calcMMValuationClass.post.responses.default.content.application/json.schema.$ref
Could not resolve reference: Not Found
I added the property quarkus.smallrye-openapi.store-schema-directory to the application.properties file and examined the generated openapi.json and openapi.yaml files which look like they have the required information.
I also inspected the dmnDefinitions.json file in target/classes/META-INF/resources, which also looks like it has everything needed.
If I navigate to localhost:8080/openapi?format=json it returns a document that for the API call I'm interested in shows:
post:
requestBody:
description: "DMN input"
content:
application/json:
schema:
$ref: "dmnDefinitions.json#/definitions/InputSet1"
But at this point I'm stuck as to how to resolve the resolver errors in the swagger UI.
Any guidance would be appreciated!
Thanks,
Doug