Closed ttiurani closed 2 years ago
In order to be able to have refer to an external schema file, for example:
schema: $ref: "./schema.json#/definitions/MyExternalType"
in the OpenAPI definition, also the external dependencies need to be copied to Bazel's private tmp cache.
To do this, a schema_refs attribute is added, and can be used like:
openapi_gen( ... spec = "openapi.yaml", spec_refs = ["schema.json"] )
Thanks @ttiurani!
Any chance to merge this @chenrui333 ? I'd rather use your repo instead of my own fork :)
@ttiurani sorry about the delay, just merge the PR!! Thanks for the work!
In order to be able to have refer to an external schema file, for example:
in the OpenAPI definition, also the external dependencies need to be copied to Bazel's private tmp cache.
To do this, a schema_refs attribute is added, and can be used like: