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

Add Support for using example field in parameter to generate snippet … #61

Merged
merged 1 commit into from
Jun 4, 2021

Conversation

cmullenx
Copy link

Currently headers found inside a given method's parameters only populate with an example value of "SOME_' + (param.type||param.schema.type).toUpperCase() + '_VALUE". This PR generates an example value for headers found in the parameter using some properties found in the parameter object. Additionally, this PR also uses the "example" property in the parameter object (if available) to generate an example value.

Refer to: #57

@ErikWittern ErikWittern merged commit 373514c into ErikWittern:main Jun 4, 2021
@ErikWittern
Copy link
Owner

@cmullenx Thank you very much for adding tests!

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