vmware / vmware-openapi-generator

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

OpenAPIv3: Final JSON files come with incorrect references #73

Open goneri opened 1 year ago

goneri commented 1 year ago

Describe the bug

Hi,

I use vSphere 8 and when I generate the vcenter.json file in the OpenAPI3 format, I get a long list of references that are incorrect. As far as I understand, these references should start with #/components/schemas/ instead. I don't face the same problem if I generate the file in the Swagger2 format.

Reproduction steps

  1. deploy vcsa 8
  2. install vmware-openapi-generator with this PR https://github.com/vmware/vmware-openapi-generator/pull/71
  3. python vmsgen.py --insecure -vc vcenter.test -oas 3 -o ~/tmp/openapi/results

Expected behavior

All the references should be resolvable.

Additional context

No response