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

Is it possible to create somehow one OpenApi file? #38

Open
edwinvandenbelt opened this issue May 17, 2023 · 2 comments
Open

Is it possible to create somehow one OpenApi file? #38

edwinvandenbelt opened this issue May 17, 2023 · 2 comments
Labels
question Further information is requested

Comments

@edwinvandenbelt
Copy link

I'm used to generate code using the swagger editor (https://editor.swagger.io/). Therefore the code should be in one file. Is it possible to obtain all the parts in one file?

@thekaveman thekaveman added the question Further information is requested label May 17, 2023
@thekaveman
Copy link
Collaborator

thekaveman commented May 17, 2023

Hello @edwinvandenbelt - yes, this is possible from the Stoplight web interface: https://openmobilityfnd.stoplight.io/docs/mds-openapi

Select an API by clicking on the cloud icon for that API (e.g. the Agency API):

image

Then look at the far right for the Export dropdown, and select Bundled References:

image

This will package everything for that API into a single YAML file and download it.

@edwinvandenbelt
Copy link
Author

edwinvandenbelt commented May 25, 2023

Ah. Ok, works partly. I need to implement as well a few endpoints from policy, geography and provider... I do have 3 different yamls to integrate. And you are using OpenAPI 3.1.0. You're running ahead of the troops. Most generators can cope with 3.0.0, but that's not your main concern.

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

No branches or pull requests

2 participants