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

Extended library with Information about "responses" #127

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

SimplyComple0x78
Copy link

I am using this library to implement an awesome JS-library that should validate all requests and responses against the given JSON-schema from the swagger-File. While I could do this for requests (since the parameters are there) I can't do it for responses, because the different responses get lost during the lib-internal transformation.

Thus, I added the responses just as they have been defined in the swagge-file to each "method" to enable encouraged developers to add some response-based features in their generated JS-library (especially using "getCustomCode").

@SimplyComple0x78
Copy link
Author

Hey, do you want the change or don't you? I ain't get feedback... is anybody out there? @wcandillon ?

@bradleat
Copy link

This would be a good change to add, I need this same functionality @wcandillon

Copy link

@bradleat bradleat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need the same thing. I'll be adding this into my fork

@bradleat
Copy link

I added #163 which also adds in type information to the response object.

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

Successfully merging this pull request may close these issues.

2 participants