[Bug]: JSON Schema emitter drops indentation of fenced code blocks inside of doc comments (/** */
)
#3370
Closed
4 tasks done
Labels
Milestone
Describe the bug
See reproduction below.
Reproduction
Take this
main.tsp
TSP file as an example.Run
tsp compile .
with the JSON schema emitter configured.Then you'll get the following output:
Notice how indentation inside of the TOML fenced code block got messed up in the
description
field of the schema.Workaround
As a workaround it's possible to use the verbose
@doc()
syntax with""" a multiline string """
. It preserves the indentation just fine.Checklist
The text was updated successfully, but these errors were encountered: