storj/private/apigen
Ivan Fraixedes 269dd5602e private/apigen: Don't print empty description & version in docs
If the API description or version is empty, don't print out in the docs
a placeholder for them.

In commit bcde51138d a space between the
placeholder and description was removed because it was printing a
trailing space if the description was empty, but that introduced another
bug, which is not adding the space when the description is empty.

This commit fixes the bug, no printing the placeholder if the
description is empty, otherwise print it with the corresponding blank
space in between the placeholder and the description.

Change-Id: I19c92c3dd7dfb38b8b2a43821bafc726ffad59d7
2023-11-27 16:53:33 +00:00
..
example private/apigen: Don't print empty description & version in docs 2023-11-27 16:53:33 +00:00
common_test.go private/apigen: Avoid clashes of types names 2023-10-05 07:30:09 +00:00
common.go private/apigen: handle omitempty JSON option in structs 2023-11-18 07:09:42 -06:00
docgen.go private/apigen: Don't print empty description & version in docs 2023-11-27 16:53:33 +00:00
endpoint_test.go private/apigen: Add a TypeScript client mock generator 2023-10-25 14:43:01 +02:00
endpoint.go private/apigen: Allow to customize handlers logic 2023-11-23 06:57:40 +00:00
gogen_test.go private/apigen: Remove support for anonymous types 2023-11-16 12:29:21 +00:00
gogen.go private/apigen: Allow to customize handlers logic 2023-11-23 06:57:40 +00:00
tsgen.go private/apigen: Allow to customize handlers logic 2023-11-23 06:57:40 +00:00
tsgenmock.go private/apigen: Remove support for anonymous types 2023-11-16 12:29:21 +00:00
tstypes_test.go private/apigen: Remove support for anonymous types 2023-11-16 12:29:21 +00:00
tstypes.go private/apigen: use correct TS type for nillable fields 2023-11-21 17:58:07 +00:00