Skip to content

Commit 3d25567

Browse files
committed
docs(openapi): add bracket notation doc for array index limits
1 parent 865fe1f commit 3d25567

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

apps/content/docs/openapi/bracket-notation.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ Bracket Notation encodes structured data in formats with limited syntax, like UR
2727
color[0]=red&color[2]=blue → { color: ["red", <empty>, "blue"] }
2828
```
2929

30+
::: info
31+
Array indexes must be less than 10,000 by default to prevent memory exhaustion attacks from large indices. Configure with `maxBracketNotationArrayIndex` in `OpenAPIHandler`.
32+
:::
33+
3034
4. **Append `[key]` to denote an object property.**
3135

3236
```
@@ -103,4 +107,15 @@ This form data is parsed as:
103107
"files": ["<binary data>", "<binary data>"]
104108
}
105109
}
110+
```
111+
112+
"files": ["<binary data>", "<binary data>"]
113+
114+
}
115+
}
116+
}
117+
}
118+
119+
```
120+
106121
```

0 commit comments

Comments
 (0)