-
Notifications
You must be signed in to change notification settings - Fork 3
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 JSDoc descriptions from object types #3
Conversation
7e2cdd4
to
bceefb6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good @daniel-chambers I was slightly confused why some of the test output keys were now quoted but I guess it was just updating with the new output, and it doesn't make any difference anyway.
@@ -5,6 +5,7 @@ This changelog documents the changes between release versions. | |||
Changes to be included in the next upcoming release | |||
|
|||
- Add support for parallel execution of readonly functions ([#2](https://github.com/hasura/ndc-nodejs-lambda/pull/2)) | |||
- Add support for JSDoc descriptions from object types ([#3](https://github.com/hasura/ndc-nodejs-lambda/pull/3)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Descriptions are collected for: | ||
* Functions | ||
* Function parameters | ||
* Types | ||
* Type properties |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Note: This PR is stacked on #2 and will be rebased on main when that PR merges.Done.JIRA: NDC-345
This PR adds support for JSDoc descriptions on object types. We currently support picking up descriptions from function definitions and function arguments, but object types and their properties were missed.
For example, we now support:
Unit tests have been added to check gathering of descriptions from functions and from types.