mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-29 07:34:07 +00:00
* fix: support multiline descriptions in example blocks * refactor: use outdentString for example multiline text block parsing * test: add test case for examples without description field * test: add jsonToBru conversion test for multiline descriptions * refactor: generalize descriptionvalue to textvalue in example grammar
22 lines
454 B
JSON
22 lines
454 B
JSON
{
|
|
"meta": {
|
|
"name": "Multiline Description Test",
|
|
"type": "http",
|
|
"seq": "1"
|
|
},
|
|
"http": {
|
|
"method": "get",
|
|
"url": "https://api.example.com/test"
|
|
},
|
|
"examples": [
|
|
{
|
|
"name": "Test Example",
|
|
"description": "This is a multiline description.\nIt spans multiple lines.\nAnd should be parsed correctly.",
|
|
"request": {
|
|
"url": "https://api.example.com/test",
|
|
"method": "get"
|
|
}
|
|
}
|
|
]
|
|
}
|