Skip to content

Extended library with Information about "responses" #127

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants