Skip to content
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

Add support for remote spec references via $ref #41

Open
brittonhayes opened this issue Oct 27, 2021 · 0 comments
Open

Add support for remote spec references via $ref #41

brittonhayes opened this issue Oct 27, 2021 · 0 comments

Comments

@brittonhayes
Copy link

Why?

This would enable users to split up large open api specifications into discrete maintainable parts. Additionally it would allow for the use of remote open api specification schemas to be joined into a local spec.

What?

Ideally someone could pass goapi-gen an open api yaml or json file with a schema that contains $ref attributes and the CLI would resolve those external schemas successfully.

E.g. in a pet store api, put the schema for pet in a pet.yaml folder and be able to import/resolve that with a simple $ref:

Details

getkin/kin-openapi#286

https://github.com/getkin/kin-openapi/blob/17153345908503543b50b7b6409f9d030bae0beb/openapi3/testdata/load_with_go_embed_test.go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant