bufbuild / protobuf-es

Protocol Buffers for ECMAScript. The only JavaScript Protobuf library that is fully-compliant with Protobuf conformance tests.
Apache License 2.0
1.16k stars 69 forks source link

Generate full JSDoc for JSON types #975

Closed timostamm closed 2 months ago

timostamm commented 2 months ago

With the option json_types=true, we generate JSON types. The JSDoc comments for these types do not carry over the original comments from the Protobuf source, and do not include information like deprecation.

This PR changes the behavior to generate the same JSDoc comments for JSON types as for the primary types.

Closes https://github.com/bufbuild/protobuf-es/issues/971.