-
-
Notifications
You must be signed in to change notification settings - Fork 159
Commit 9277256
Improved ID obfuscation (#1775)
* Make running kiota tests faster by turning off default handlers (such as retries)
* Remove redundant TranslateAsync calls in tests
* Fix inconsistencies in test assertions
* Assert on obfuscated links, mention sqids
* Switch from int to long, use invariant culture, use singleton codec
* Add API to remove a resource from the graph (after assembly scanning)
* Add test support for obfuscation in operations
* Add annotation to hide underlying resource ID type in OpenAPI document
* Add OpenAPI tests for ID obfuscation1 parent 23be010 commit 9277256
File tree
133 files changed
+14500
-297
lines changed- src
- JsonApiDotNetCore.OpenApi.Swashbuckle
- Annotations
- SchemaGenerators
- Components
- JsonApiDotNetCore/Configuration
- test
- JsonApiDotNetCoreTests
- IntegrationTests/IdObfuscation
- UnitTests/ResourceGraph
- OpenApiKiotaEndToEndTests
- IdObfuscation
- GeneratedCode
- BankAccounts
- Item
- Cards
- Relationships
- Cards
- DebitCards
- Item
- Account
- Relationships
- Account
- Models
- Operations
- ModelStateValidation
- OpenApiNSwagEndToEndTests
- IdObfuscation
- ModelStateValidation
- ResourceInheritance
- NoOperations
- OnlyRelationships
- RestrictedControllers
- OpenApiTests/IdObfuscation
- GeneratedSwagger
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
133 files changed
+14500
-297
lines changedLines changed: 15 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + |
Lines changed: 27 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | + | ||
1 | 2 |
| |
3 | + | ||
4 | + | ||
2 | 5 |
| |
3 | 6 |
| |
4 | 7 |
| |
| |||
7 | 10 |
| |
8 | 11 |
| |
9 | 12 |
| |
13 | + | ||
10 | 14 |
| |
11 | - | ||
15 | + | ||
12 | 16 |
| |
13 | 17 |
| |
18 | + | ||
14 | 19 |
| |
15 | 20 |
| |
21 | + | ||
16 | 22 |
| |
17 | 23 |
| |
18 | - | ||
24 | + | ||
19 | 25 |
| |
20 | - | ||
26 | + | ||
27 | + | ||
28 | + | ||
29 | + | ||
30 | + | ||
31 | + | ||
32 | + | ||
33 | + | ||
21 | 34 |
| |
22 | - | ||
35 | + | ||
23 | 36 |
| |
24 | 37 |
| |
25 | - | ||
38 | + | ||
26 | 39 |
| |
27 | - | ||
40 | + | ||
28 | 41 |
| |
29 | 42 |
| |
30 | - | ||
43 | + | ||
31 | 44 |
| |
32 | 45 |
| |
33 | 46 |
| |
34 | 47 |
| |
35 | - | ||
48 | + | ||
49 | + | ||
50 | + | ||
51 | + | ||
52 | + | ||
53 | + | ||
54 | + | ||
36 | 55 |
| |
37 | 56 |
| |
38 | 57 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
37 | - | ||
37 | + | ||
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
|
Lines changed: 26 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
167 | 167 |
| |
168 | 168 |
| |
169 | 169 |
| |
170 | + | ||
171 | + | ||
172 | + | ||
173 | + | ||
174 | + | ||
175 | + | ||
176 | + | ||
177 | + | ||
178 | + | ||
179 | + | ||
180 | + | ||
181 | + | ||
182 | + | ||
183 | + | ||
184 | + | ||
185 | + | ||
186 | + | ||
187 | + | ||
188 | + | ||
189 | + | ||
190 | + | ||
191 | + | ||
192 | + | ||
193 | + | ||
194 | + | ||
195 | + | ||
170 | 196 |
| |
171 | 197 |
| |
172 | 198 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 | - | ||
8 | + | ||
9 | 9 |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 | - | ||
8 | + | ||
9 | 9 |
|
Lines changed: 14 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 | - | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
18 | + | ||
19 | + | ||
12 | 20 |
| |
13 | 21 |
| |
14 | 22 |
| |
| |||
25 | 33 |
| |
26 | 34 |
| |
27 | 35 |
| |
28 | - | ||
36 | + | ||
29 | 37 |
| |
30 | 38 |
| |
31 | 39 |
| |
| |||
35 | 43 |
| |
36 | 44 |
| |
37 | 45 |
| |
38 | - | ||
46 | + | ||
39 | 47 |
| |
40 | 48 |
| |
41 | 49 |
| |
42 | 50 |
| |
43 | 51 |
| |
44 | 52 |
| |
45 | 53 |
| |
46 | - | ||
54 | + | ||
47 | 55 |
| |
48 | 56 |
| |
49 | 57 |
| |
50 | 58 |
| |
51 | 59 |
| |
52 | 60 |
| |
53 | - | ||
61 | + | ||
54 | 62 |
| |
55 | 63 |
| |
56 | 64 |
| |
| |||
60 | 68 |
| |
61 | 69 |
| |
62 | 70 |
| |
63 | - | ||
71 | + | ||
64 | 72 |
| |
65 | 73 |
| |
66 | 74 |
| |
|
0 commit comments