Commit b9b9b75
test(schema): add deserialization tests for empty and boolean schemas
Add theory tests across OpenAPI 3.1 and 3.2 to validate deserialization of:
- Empty schema object ({})
- Boolean schema value (true)
These tests ensure that non-standard but valid schema forms are parsed
without errors and produce valid OpenApiSchema objects.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent b6c1fe8 commit b9b9b75
2 files changed
Lines changed: 24 additions & 0 deletions
File tree
- test/Microsoft.OpenApi.Readers.Tests
- V31Tests
- V32Tests
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
844 | 844 | | |
845 | 845 | | |
846 | 846 | | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
847 | 859 | | |
848 | 860 | | |
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
695 | 695 | | |
696 | 696 | | |
697 | 697 | | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
698 | 710 | | |
699 | 711 | | |
700 | 712 | | |
0 commit comments