You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I run into an error in the code generated by OpenAPI.jl. The API I'm trying to use accepts a "returning" input string (https://docs.benchling.com/docs/getting-started-1#returning-query-parameter) which is a comma separated list of (potentially nested) return values (e.g. "a.b.c"), which can be used to limit the returning payload. This keyword accepts a wildcard to return all values at that level, but when I use the wildcard I get an error.
I don't know where to start debugging this as the code is autogenerated by OpenAPI. Moreover, the API needs authentication so it is hard to cook up a reproducible example.
Looks like the client received a response that should have contained an instalce of WellOrInaccessibleResource. That is actually defined to be a type that is oneOf Well or InaccessibleResource. It is specified that whether what was received is a Well or a InaccessibleResource is to be determined by the value of resourceType. But looks like the resourceType key was not found in the JSON that was received.
So the error could be because of the server not responding with the correct data. The first step to debug would be to see what the server responded with. One way to do that may be setting the verbose kwarg while creating the client.
I run into an error in the code generated by OpenAPI.jl. The API I'm trying to use accepts a "returning" input string (https://docs.benchling.com/docs/getting-started-1#returning-query-parameter) which is a comma separated list of (potentially nested) return values (e.g. "a.b.c"), which can be used to limit the returning payload. This keyword accepts a wildcard to return all values at that level, but when I use the wildcard I get an error.
I don't know where to start debugging this as the code is autogenerated by OpenAPI. Moreover, the API needs authentication so it is hard to cook up a reproducible example.
Here is the auto generated code https://github.com/jonalm/BenchlingRestApi.jl
And this line https://github.com/jonalm/BenchlingRestApi.jl/blob/0294435467c1d57124d2d85956d383839fc3dd21/codegen/src/models/model_WellOrInaccessibleResource.jl#L17 errors:
The following code triggers the error
The text was updated successfully, but these errors were encountered: