Commit 00c6a27
committed
fix(tests): use ReferenceHandler.Preserve for STJ snapshot with $dynamicRef
The Serialize_DoesNotMutateDom tests use System.Text.Json to snapshot
the DOM before and after native serialization. Bare $dynamicRef schemas
now deserialize as OpenApiSchemaReference whose computed getters expose
the resolved target's properties, creating reflection cycles for
recursive dynamic refs. ReferenceHandler.Preserve lets STJ handle
cycles via $id/$ref metadata while still detecting DOM mutations.1 parent 4922341 commit 00c6a27
2 files changed
Lines changed: 2 additions & 0 deletions
File tree
- test/Microsoft.OpenApi.Readers.Tests
- V31Tests
- V32Tests
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
0 commit comments