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

Insert content of preprocessor variable into documentation #36

Open
SirTomme opened this issue Mar 8, 2018 · 0 comments
Open

Insert content of preprocessor variable into documentation #36

SirTomme opened this issue Mar 8, 2018 · 0 comments

Comments

@SirTomme
Copy link

SirTomme commented Mar 8, 2018

Besides just checking if a preprocessor variable has a given value (@rest\if name value) it would be very helpful to have its value inserted somewhere inside the documentation.
For example instead of incrementing the API version manually as in
// @rest\version 0.9.14

I would like to have it changed automatically like:
// @rest\version {myversion}
$SwaggerGen->define('myversion', 'generated-version');

Should output:
"info": { "version": "generated-version" }

Instead of using {placeholder} you could use @rest\var(placeholder) or something similar?

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