Closed jabbera closed 2 years ago
hey @jabbera not really sure what this spec would even want to generate. JsonPatchDocument is both an object and an array
"JsonPatchDocument": {
"description": "The JSON model for JSON Patch Operations",
"type": "object",
"allOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/JsonPatchOperation"
}
}
],
"properties": {}
},
@timotheeguerin I guess I'll log a bug with the azure devops team:-) Thanks.
I hit this bug today - confirm not fixed.
I was able to work around it by updating the type to "object" (or removing it). Unfortunately I then hit a YAML parsing exception with the Feed API. I suspect the VSTS team aren't dogfooding/using autorest v3. I worked around this with the --legacy
flag.
Before filling a bug
Describe the bug When attempting to generate python code from the azure devops specs I get the following error:
Expected behavior Code should be generated
Additional context If the azure devops team maintained an updated python api I wouldn't be doing this:-)