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

Find models in the whole project instead of depending on @responseClass #24

Closed
pietervogelaar opened this issue Nov 20, 2012 · 2 comments

Comments

@pietervogelaar
Copy link
Contributor

I have an API that request an certain entity as request data. As response I return another entity/class. I want to let swagger-ui (1.1.4) display the properties of the request model. But currently this model will only become available in the models array in the json file if it's in some API defined as responseClass.

I think it would be better to scan the whole project and search for @SwaggerModel with maybe an extra annotation to define in which APIs it should be added to the JSON file.

Like to hear your ideas about this.

@pietervogelaar
Copy link
Contributor Author

Or maybe a requestClass attribute in a @SwaggerParam

@zircote
Copy link
Owner

zircote commented Nov 26, 2012

This is included in the 0.4.0 release, models may aggregately be accessed via the Swagger\Swagger::$models property as well.

@zircote zircote closed this as completed Nov 26, 2012
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

2 participants