mirror of
https://github.com/usebruno/bruno.git
synced 2025-01-03 04:29:09 +01:00
fix: space in any param name is blocking the loading of the request file in GUI (#2878)
Adjusted Bruno grammar so the `key` element does not disallow spaces (leading and trailing space is still trimmed).
This commit is contained in:
parent
6320a80cbe
commit
82e53ac424
@ -33,7 +33,7 @@ const grammar = ohm.grammar(`Bru {
|
|||||||
stnl = st | nl
|
stnl = st | nl
|
||||||
tagend = nl "}"
|
tagend = nl "}"
|
||||||
optionalnl = ~tagend nl
|
optionalnl = ~tagend nl
|
||||||
keychar = ~(tagend | st | nl | ":") any
|
keychar = ~(tagend | "\\t" | nl | ":") any
|
||||||
valuechar = ~(nl | tagend) any
|
valuechar = ~(nl | tagend) any
|
||||||
|
|
||||||
// Multiline text block surrounded by '''
|
// Multiline text block surrounded by '''
|
||||||
|
@ -13,6 +13,7 @@ get {
|
|||||||
params:query {
|
params:query {
|
||||||
apiKey: secret
|
apiKey: secret
|
||||||
numbers: 998877665
|
numbers: 998877665
|
||||||
|
multi word param: is allowed
|
||||||
~message: hello
|
~message: hello
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -23,6 +24,7 @@ params:path {
|
|||||||
headers {
|
headers {
|
||||||
content-type: application/json
|
content-type: application/json
|
||||||
Authorization: Bearer 123
|
Authorization: Bearer 123
|
||||||
|
multi word header: is allowed
|
||||||
~transaction-id: {{transactionId}}
|
~transaction-id: {{transactionId}}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,6 +23,12 @@
|
|||||||
"type": "query",
|
"type": "query",
|
||||||
"enabled": true
|
"enabled": true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name" : "multi word param",
|
||||||
|
"value" : "is allowed",
|
||||||
|
"type": "query",
|
||||||
|
"enabled": true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "message",
|
"name": "message",
|
||||||
"value": "hello",
|
"value": "hello",
|
||||||
@ -47,6 +53,11 @@
|
|||||||
"value": "Bearer 123",
|
"value": "Bearer 123",
|
||||||
"enabled": true
|
"enabled": true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name" : "multi word header",
|
||||||
|
"value" : "is allowed",
|
||||||
|
"enabled": true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "transaction-id",
|
"name": "transaction-id",
|
||||||
"value": "{{transactionId}}",
|
"value": "{{transactionId}}",
|
||||||
|
Loading…
Reference in New Issue
Block a user