[pdm-devel] [PATCH proxmox-api-types 1/1] generator: support methods with no parameters
Stefan Hanreich
s.hanreich at proxmox.com
Wed Feb 5 14:39:12 CET 2025
On 2/5/25 14:03, Wolfgang Bumiller wrote:
> This would produce an explicit parameter of type `()` - why not just
> drop `params` when we have none?
I did it, because the http client's post method required a 'param'
parameter for post calls, I didn't see that there's post_without_body
available.
We could try to catch this by checking if there is an input-type and, if
not, generate the method with the `post_without_body` method of the http
client instead?
Alternatively, we could check in the print_implementation call and use
`print_method_without_body` depending on the input-type / input defs?
More information about the pdm-devel
mailing list