Skip to content

Enhanced Documentation? #640

Closed
Closed
@ehallander9591

Description

@ehallander9591

protobuf.js version: <6.4.2>

Enhancement Request.

Was checking out https://github.com/estan/protoc-gen-doc and looking at the results, and thought that maybe pbjs could add the comments from a .proto file to it's own generated comments

Cheers

/**
 * The type of change the published type represents
 */
enum ChangeType {
	CHG_UNKNOWN = 0;    /// An Unknown ChangeType condition
	CHG_UPSERT = 1;     /// Updated or Insert / Added
	CHG_DELETED = 2;    /// Deleted
}

could produce

                /**
                 * ChangeType enum.
                 * The type of change the published type represents
                 * @name ChangeType
                 * @memberof com.eoir.mpxs
                 * @enum {number}
                 * @property {number} CHG_UNKNOWN=0 An Unknown ChangeType condition
                 * @property {number} CHG_UPSERT=1 Updated or Insert / Added
                 * @property {number} CHG_DELETED=2 Deleted
                 */

or something like that.
<please paste the stack trace of the error if applicable>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions