Commit eb6e886
authored
feat: add
- Add `JsonApiOptions` class with security limits for query complexity
- MaxFilters (50), MaxFilterGroups (10), MaxFilterDepth (3),
MaxFilterValueLength (1000)
- MaxIncludeDepth (3), MaxPageSize (100), DefaultPageSize (10)
- Queries exceeding limits return 400 Bad Request with helpful error
messages
- Configure via `services.AddJsonApiToolkit(options => { ... })`JsonApiOptions for configurable query limits (#63)1 parent ca0e54b commit eb6e886
8 files changed
Lines changed: 1064 additions & 9 deletions
File tree
- .github
- JsonApiToolkit.Tests
- Configuration
- Services
- JsonApiToolkit
- Configuration
- Extensions
- Parsing
- Services
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
0 commit comments