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

Automated doc generation #809

Open
5 tasks done
PhilipWee opened this issue Sep 20, 2023 · 8 comments
Open
5 tasks done

Automated doc generation #809

PhilipWee opened this issue Sep 20, 2023 · 8 comments
Labels
enhancement New feature or request

Comments

@PhilipWee
Copy link

Describe the bug

Not really a bug, but I don't think it should be a necessity to specify the request url and request method (And perhaps even the possible responses) because all these are things that are available within the code itself

For example we can look at the folder path and exported module name and from there derive the available methods and api paths

Reproduction

/** * @Swagger * /api/hello: * get: * description: Returns the hello world * responses: * 200: * description: Hello World! */

System Info

/**
 * @swagger
 * /api/hello:
 *   get:
 *     description: Returns the hello world
 *     responses:
 *       200:
 *         description: Hello World!
 */

Used Package Manager

yarn

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.
@PhilipWee
Copy link
Author

PhilipWee commented Sep 20, 2023

Let me know if you want me to make a PR for this, I don't mind (Since it will make the final code more DRY)

@jellydn jellydn added the enhancement New feature or request label Sep 20, 2023
@jellydn
Copy link
Owner

jellydn commented Sep 23, 2023

Thanks @PhilipWee

Let me know if you want me to make a PR for this

That sounds great. Please open the PR.

@SaadBazaz
Copy link

Combining Zod, JSDoc, and some preprocessing scripts can help us autogenerate the OpenAPI spec.

@mildfuzz
Copy link

mildfuzz commented May 2, 2024

Combining Zod, JSDoc, and some preprocessing scripts can help us autogenerate the OpenAPI spec.

hey, any chance you could provide a process for achieving this? this is what I a researching currenty

@jellydn
Copy link
Owner

jellydn commented May 2, 2024

Combining Zod, JSDoc, and some preprocessing scripts can help us autogenerate the OpenAPI spec.

hey, any chance you could provide a process for achieving this? this is what I a researching currently

I would do the PoC about this sometime. However, you could combine those tools to work nicely together

@Coean
Copy link

Coean commented Jun 18, 2024

Just want to know why the PR: #812 hasn't been approve for so long? The feature he does is what I want.

@tgdn
Copy link

tgdn commented Jul 22, 2024

Are there any updates on this issue? Thanks!

@jellydn
Copy link
Owner

jellydn commented Jul 28, 2024

Just want to know why the PR: #812 hasn't been approve for so long? The feature he does is what I want.

As far as I know, it's WIP (not ready yet). PRs always welcome anyway :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants