Skip to content

Commit 4b877b6

Browse files
committed
Improve code examples
1 parent 1af2c47 commit 4b877b6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+2609
-1208
lines changed

.cursor/rules/generators.mdc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ All code generators should follow the next rules:
1010
1. They don't produce code with comments.
1111
2. They should generate idiomatic code for their target lanuage.
1212
3. The should not try to extract data from response, but in the code example, the response variable should be the last one.
13-
4. They should generate compact and elegant code.
13+
4. They should generate compact and elegant code. But with new lines, no need to pack everything in one line.
14+
5. If the options body is a JSON body, it should be a dictionary object formatted properly and be ready to accept big JSON. Put properties on new line each.
15+
6. And the same for query parameters (as for JSON): it should be a dictionary object formatted properly and be ready to accept many parameters and some of them can be an array even, put them on new line each.

0 commit comments

Comments
 (0)