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

Generate YAML file #13

Closed
ghost opened this issue Oct 26, 2022 · 1 comment
Closed

Generate YAML file #13

ghost opened this issue Oct 26, 2022 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 26, 2022

Hi...

Is there an option to be able to generate the json or yaml file from a cli command?

The idea is to generate the file locally, (during development) or during build process on the pipelines, and have the yaml file ready to be supplied to apim.

Is this possible?

@aaronpowell
Copy link
Owner

Unfortunately not. Due to the way Azure Functions operates, the Functions available are not known until runtime, as it requires a lot of parsing and loading of the script files. The only way that a CLI could do it is to essentially run the Functions host itself and then extract the metadata.

There's a new Functions programming model being developed (see Azure/azure-functions-nodejs-worker#480) that may open up some better options for OpenAPI support, but at the moment there's not a lot more I can do.

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