Pattern support#249
Conversation
- added pattern command-line arguement - added pattern attribute to Options object
- added pattern command-line arguement with help text - added pattern attribute and get/set methods to Options object - added loadPattern method to Loader to load json file - added section in swaggerInline in Indx to handle adding the loaded pattern file to options - expanded test coverage to cover all changes
erunion
left a comment
There was a problem hiding this comment.
Handful of nits, but overall this looks pretty solid! Thanks for picking this up.
Can you also re-run Prettier on your changes? You can run it with npx prettier --list-different --write "./**/**.{js}"
Co-authored-by: Jon Ursenbach <[email protected]>
Co-authored-by: Jon Ursenbach <[email protected]>
Co-authored-by: Jon Ursenbach <[email protected]>
Co-authored-by: Jon Ursenbach <[email protected]>
|
@erunion Receiving following error when running prettier: |
|
@garrett-wade I just pushed up c718583 that has a |
|
@erunion was able to run |
Co-authored-by: Jon Ursenbach <[email protected]>
erunion
left a comment
There was a problem hiding this comment.
Sorry, I finally had a chance to run this locally and a found a couple things. These should be the last of the changes! Thanks again for this.
Co-authored-by: Jon Ursenbach <[email protected]>
Co-authored-by: Jon Ursenbach <[email protected]>
Co-authored-by: Jon Ursenbach <[email protected]>
Co-authored-by: Jon Ursenbach <[email protected]>
Co-authored-by: Jon Ursenbach <[email protected]>
Co-authored-by: Jon Ursenbach <[email protected]>
|
@erunion thanks for all of the feedback! This is my first time contributing to an open source library as well as extending a node.js library in general. Thank you for taking the time to make the suggestions, learned a lot! |
Adding support for custom comment pattern specification
This is initial enhancement to support the following issue readmeio/oas#603.
This enhancement:
patternargument command-line argument with help textOptionsobjectloadPatternmethod toLoaderto load json file that contains specification of patternswaggerInlineinindexfile to handle adding the loaded pattern file to the optionsvariableTesting
Refer to the
can extract comments from custom pattern and custom filetest in theextractor.test.jsfile to see a detailed test of the additional functionality.