Closed sabedevops closed 1 year ago
Interesting. This isn't found in any tests or the CLI because Go treats nil
/null
as semi-equivalent (nil
/null
is an empty list), so the go generated client happily continues.
We will likely encounter more of these as every language+generator makes different assumptions for edge-case values and data types. The only way to find them preemptively is to use every langue+generator combo out there and test them - which is unfeasible.
We will take care of this.
I am transferring this issue to github.com/openziti/edge as this is an edge issue, not a spec issue.
ziti version: v0.29.0
Attempting
GET /auth-policies
results in the below exception when using the python generated client to the edge management API.The return values for the
default
auth policies is as follows:null
is not alist
type, and the client is correctly rejecting the reponse as invalid with respect to the definition ofallowedSigners
here:https://github.com/openziti/edge-api/blob/main/management.yml#L12905