Bru Lang: New Syntax Proposal for storing requests #1290
Replies: 4 comments 3 replies
-
Thank you to ask to the community these important decisions. Sorry for so much questions... |
Beta Was this translation helpful? Give feedback.
-
It would be helpful to understand the reasons for switching to a new file format. Currently, many companies are dealing with the challenge of switching from Postman to another tool. If the syntax and format of the language change with each version of Bruno, it creates significant risks and uncertainties. This situation makes many companies hesitant to consider Bruno as a viable alternative to Postman. |
Beta Was this translation helpful? Give feedback.
-
I am not sure why it was not feasible to use the YAML format. This format is commonly used in various areas, including describing the Open API specification. Apart from being human-readable, many libraries can read this format for different programming languages. When we create our own language, we face a situation where there are no libraries that can read it. |
Beta Was this translation helpful? Give feedback.
-
As an experiment, I asked artificial intelligence to try to represent one of the HTTP queries using the YAML. The original Bruno file:
The prompt: Let's assume you need to represent this data in YAML format. How can you do this? The response: meta:
name: Translate sentence to Pig Latin
type: http
seq: 1
post:
url: "{{host}}/pig-latin"
body: json
auth: none
headers:
Content-Type: application/json
Accept: application/json
body:json:
sentence: "Hello, World!"
assert:
res.status: eq 200
res.body: isJson
res.body.sentence:
- isDefined
- isString
- eq "ellohay, orldway!"
docs:
- Translate English sentence to Pig Latin |
Beta Was this translation helpful? Give feedback.
-
Proposed Syntax - right
Current Syntax - left
21 votes ·
Beta Was this translation helpful? Give feedback.
All reactions