Do not collapse newlines in doc comments (#310)

This commit is contained in:
Graham Esau 2024-08-04 16:43:22 +01:00 committed by GitHub
parent 91ee3f915c
commit ce15380863
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 14 additions and 48 deletions

View file

@ -1,7 +1,7 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "My Amazing Struct",
"description": "This struct shows off generating a schema with a custom title and description.",
"description": "This struct shows off generating a schema with\na custom title and description.",
"type": "object",
"properties": {
"my_bool": {
@ -48,7 +48,7 @@
]
},
{
"description": "A struct-like enum variant which contains some floats",
"description": "A struct-like enum variant which contains\nsome floats",
"type": "object",
"properties": {
"StructVariant": {