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
Swagger represents all maps as type "any" #4700
Comments
All maps currently show as type "any", which I think was done as a workaround for undefined custom types (#2971). |
FYI. In the future, when the spec is upgraded to 2.0, the map can be documented using
|
@thockin @nikhiljindal Before the spec gets upgraded to OpenAPI/Swagger spec 2.0, can we replace |
Does "type": "object" have any special meaning? |
|
emicklei/go-restful#270 replaces "any" by "object". |
Automatic merge from submit-queue Allowing type object in kubectl swagger validation Allowing `"type": "object"` in kubectl swagger validation. We will cherrypick this in 1.2 This allows 1.2 kubectl to work with 1.3 api server which will use `"type":"object"` instead of `"type":"any"`. Ref #4700 (comment) cc @bgrant0607
Automatic merge from submit-queue Updating go-restful to generate "type":"object" instead of "type":"any" in swagger-spec (breaks kubectl 1.1) Updating go-restful to include emicklei/go-restful#270 (replacing type "any" by type "object". Ref swagger-api/swagger-codegen#2347 on why we want to do that) Ref #4700 (comment) First commit generated using: ``` godep restore go get -u github.com/emicklei/go-restful godep update github.com/emicklei/go-restful ``` Second commit generated by running ``` ./hack/update-swagger-spec.sh ``` Third commit generated by running: ``` ./hack/update-api-reference-docs.sh ``` cc @kubernetes/sig-api-machinery @bgrant0607
Maps are represented correctly in swagger 2.0/OpenAPI now. |
"labels": "v1beta3.ObjectMeta.labels",
Not sure what that means...
The text was updated successfully, but these errors were encountered: