-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code generation: Top-level array response is unsupported #36
Labels
Comments
After some experimenting, I was able to get part way through this. It is incomplete though, and introduces unwanted artifacts:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Subject of the issue
While exposing a new route in SDKs, code generation fails to produce working code. Provided we agree the OAS definition is valid, the ticket's request is to modify generator to support the use case.
It appears the problem is specific to returning a top-level array response. The affected route is "/v2/applications/{application-id}/boxes" in https://github.com/algorand/go-algorand/blob/feature/avm-box/daemon/algod/api/algod.oas2.json.
Your environment
N/A
Steps to reproduce
Here's a PR illustrating the
Expected behaviour
generator produces Java + Go SDK changes that compile + implement the spec.
Actual behaviour
Here's a PR illustrating the as-is behavior: algorand/go-algorand-sdk#340 .
The text was updated successfully, but these errors were encountered: