I am trying to import service actions from a valis openAPI 3 spec file. The endpoints are displayed correctly wehen loading the file, but when I press save, the Service editor responds (after trying to load the services) with “Service operations are not found”.
In the Output window, I see 2 errors for every operation I try to import: (pasted for searchability)
- CompilerBuilder.Compile: Keyword ‘void’ cannot be used in this context
- Since ‘_Client.LogAsync(Authorization10, string, Body9, CancellationToken)’ is an async method that returns ‘Task’, a return keyword must not be followed by an object expression. Did you intend to return ‘Task’?
Is this a bug, or should I provide other information in my OpenApi spec file to correctly generate an async client?