-
-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the issues of strip and merge desc for code block
- Loading branch information
1 parent
9415fcb
commit 14f903b
Showing
6 changed files
with
180 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
schemars/tests/expected/doc_comments_with_inline_code.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "This is the struct's title", | ||
"description": "This is the struct's description.\n\nThis is example:\n ```json\n {\n \"value\": 0,\n \"type\": \"msg\"\n }\n```", | ||
"type": "object", | ||
"required": [ | ||
"my_int" | ||
], | ||
"properties": { | ||
"my_int": { | ||
"title": "An integer", | ||
"type": "integer", | ||
"format": "int32" | ||
} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
schemars/tests/expected/doc_comments_with_inline_code_normal.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "MyStructWithInlineCodeNormal", | ||
"description": "This is example:\n ```json\n {\n \"value\": 0,\n \"type\": \"msg\"\n }\n```", | ||
"type": "object", | ||
"required": [ | ||
"my_int" | ||
], | ||
"properties": { | ||
"my_int": { | ||
"title": "An integer", | ||
"type": "integer", | ||
"format": "int32" | ||
} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
schemars/tests/expected/doc_comments_with_inline_table.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "MyStructWithInlineCodeTable", | ||
"description": "This is example:\n\n| A | B |\n|---|---|\n| 1 | 2 |\n| 3 | 4 |\n| 5 | 6 | this is last line", | ||
"type": "object", | ||
"required": [ | ||
"my_int" | ||
], | ||
"properties": { | ||
"my_int": { | ||
"title": "An integer", | ||
"type": "integer", | ||
"format": "int32" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters