vmware / vmware-openapi-generator

VMware-openapi-generator tool generates open-api documents from vapi metamodel format.
Other
22 stars 19 forks source link

Some of the structures have '$' in their name resulting in a validation error #28

Closed kunal-pmj closed 5 years ago

kunal-pmj commented 5 years ago

APIS like /vcenter/vcha/cluster/mode have references to the structures with which have $ in their names. This causes schema validation error as $ is not allowed in the name. "/vcenter/vcha/cluster/mode": { "put": { "tags": [ "vcha_cluster_mode" ], "summary": "Manipulates the mode of a VCHA Cluster. Following mode transitions are allowed:\n enabled -> disabled - Allowed only in healthy and degraded states.\n enabled -> maintenance - Allowed only in healthy state.\n disabled -> enabled - Allowed only in healthy state.\n maintenance -> enabled - Allowed only in healthy state with all nodes are running the same version.\n maintenance -> disabled - Allowed only in healthy state with all nodes are running the same version.\n All other transitions are not allowed. \n VCHA Cluster configuration remains intact in any of the cluster modes.\n", "parameters": [ { "in": "body", "name": "requestbody", "required": true, "schema": { **"$ref": "#/definitions/vcenter.vcha.cluster.modeset$task" } } ], "responses": { "200": { "description": "", "schema": { _"$ref": "#/definitions/vcenter.vcha.cluster.mode.set$taskresult"** } },

kunal-pmj commented 5 years ago

Following Pull Request would address this issue.