Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

PUT request needs empty body as required by service, instead it is null body #861

Closed
hivyas opened this issue Jun 15, 2021 · 0 comments · Fixed by #864
Closed

PUT request needs empty body as required by service, instead it is null body #861

hivyas opened this issue Jun 15, 2021 · 0 comments · Fixed by #864

Comments

@hivyas
Copy link
Member

hivyas commented Jun 15, 2021

image
For one of our entities, it only has 1 readonly property so the body for its PUT request is being generated as null (line 132 in above image). The service does not allow for null bodies so instead it should be an empty body so parameters={}

kairu-ms added a commit to kairu-ms/autorest.az that referenced this issue Jul 2, 2021
kairu-ms added a commit to kairu-ms/autorest.az that referenced this issue Jul 2, 2021
kairu-ms added a commit that referenced this issue Jul 21, 2021
* fix invalid custom

* fix #861

* fix test
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant