modelina icon indicating copy to clipboard operation
modelina copied to clipboard

Interfaces are not being documented via JSdoc

Open smoya opened this issue 4 years ago • 10 comments

Describe the bug

Our current flow for generating docs is first transpile TypeScript to Javascript, then run jsdoc2md to generate the final Markdown file. See https://github.com/asyncapi/generator-model-sdk/blob/master/package.json#L62.

Documenting interfaces in jsdoc is totally possible thanks to the @interface tag. However, the tag is not supported by TS compiler. See https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html.

That means we cannot generate documentation for interfaces later on with jsdoc2md as those tags are not added ever.

Expected behavior

We somehow generate documentation for interfaces.

I would suggest we re-evaluate the current flow so we can either:

  1. Generate the docs directly from TS:
    • https://github.com/microsoft/tsdoc (Standard, but I think it's WIP)
    • http://typedoc.org/
  2. Rather we transpile using an alternative like https://github.com/SoftwareBrothers/better-docs#how-it-works

smoya avatar Feb 24 '21 16:02 smoya

This issue has been automatically marked as stale because it has not had recent activity :sleeping: It will be closed in 60 days if no further activity occurs. To unstale this issue, add a comment with detailed explanation. Thank you for your contributions :heart:

github-actions[bot] avatar Apr 26 '21 00:04 github-actions[bot]

@all-contributors please add @smoya for bug

jonaslagoni avatar Apr 28 '21 10:04 jonaslagoni

@jonaslagoni

I've put up a pull request to add @smoya! :tada:

allcontributors[bot] avatar Apr 28 '21 10:04 allcontributors[bot]

This issue has been automatically marked as stale because it has not had recent activity :sleeping: It will be closed in 60 days if no further activity occurs. To unstale this issue, add a comment with detailed explanation. Thank you for your contributions :heart:

github-actions[bot] avatar Jun 28 '21 00:06 github-actions[bot]

This issue has been automatically marked as stale because it has not had recent activity :sleeping:

It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.

There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.

Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.

Thank you for your patience :heart:

github-actions[bot] avatar Dec 22 '21 00:12 github-actions[bot]

Still relevant

jonaslagoni avatar Dec 22 '21 11:12 jonaslagoni

This issue has been automatically marked as stale because it has not had recent activity :sleeping:

It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.

There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.

Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.

Thank you for your patience :heart:

github-actions[bot] avatar Apr 22 '22 00:04 github-actions[bot]

Still relevant imho cc @jonaslagoni

smoya avatar Apr 22 '22 09:04 smoya

This issue has been automatically marked as stale because it has not had recent activity :sleeping:

It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.

There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.

Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.

Thank you for your patience :heart:

github-actions[bot] avatar Aug 21 '22 00:08 github-actions[bot]

relevant

smoya avatar Aug 22 '22 08:08 smoya

This issue has been automatically marked as stale because it has not had recent activity :sleeping:

It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.

There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.

Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.

Thank you for your patience :heart:

github-actions[bot] avatar Feb 16 '23 00:02 github-actions[bot]

Old, but still relevant

smoya avatar Feb 16 '23 16:02 smoya

:tada: This issue has been resolved in version 1.8.7 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

asyncapi-bot avatar Aug 03 '23 07:08 asyncapi-bot