-
Notifications
You must be signed in to change notification settings - Fork 219
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
[Python] array of arrays not generated #5159
Comments
Hi @geometrikal #4385 would help support this scenario in python though through allowing you to pass "arbitrary" data to the property. |
I hope you reconsider - I've seen this a bit in the APIs I consume, things like lists of lists of float for polygon coordinates. I believe it is valid openapi to have nested arrays? Believe it or not, if I put |
Thank you for the additional information.
yes, OAS doesn't have any opinion on the shape of the data.
you probably mean on the API side? which results in a one dimensional array in the description and in the client? If that's the case yes one dimension arrays are perfectly supported today. |
Haha, no if I put
I can trick kiota into creating the property and serializing it. I don't imagine deserialization will work. |
Thank you for the additional information. To recap:
Is that an accurate representation of the situation? What if instead of waiting for the next major release, which we currently don't have a schedule for, the property was generated but with "UntypedNode" instead? |
Yes, thanks I would love it if it was supported directly, but I think that anything that enables the functionality, even if it is a workaround, without having to change the schema would be welcome. So if What do you think - maybe everything that is not currently implemented properly could be instead exposed as |
Can you create a separate issue for one of please? I'd like the conversation here to stay focused so we're more likely to get to action items and resolution. For the untypednode solution to work end to end in python, we'd be depending on #4385 to get done. But we already have ongoing PRs for that! For the generator changes is this something you'd like to submit a pull request for provided some guidance? |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
What are you generating using Kiota, clients or plugins?
API Client/SDK
In what context or format are you using Kiota?
Windows executable
Client library/SDK language
Python
Describe the bug
I'm trying to generate a client for the CVAT API
An openapi compenent property that is an array of array does not generate any corresponding property in the python model
Expected behavior
For the above, generate
job_file_mapping: Optional[List[List[str]]] = None
How to reproduce
See above
Open API description file
No response
Kiota Version
1.17.0+1eb16cd65853c17179e2dde3ae6098135deacf55
Latest Kiota version known to work for scenario above?(Not required)
No response
Known Workarounds
No response
Configuration
No response
Debug output
Click to expand log
```The text was updated successfully, but these errors were encountered: