Commit 072285f
[Repo Assist] fix: use toParam in form content helpers for correct date/time serialization (+4 tests, 296→300) (#395)
* fix: use toParam in toFormUrlEncodedContent and toMultipartFormDataContent for correct date/time serialization (+4 tests, 296→300)
Previously both functions used ToString() which gives locale-dependent output
for DateTime/DateTimeOffset and incorrect formatting for DateOnly values.
They now delegate to toParam, which uses ISO 8601 (O specifier) for DateTime
and DateTimeOffset, and yyyy-MM-dd for DateOnly — the same formats used
for query parameters.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* ci: trigger checks
* test: strengthen DateTime/DateTimeOffset form serialization assertions
Agent-Logs-Url: https://github.com/fsprojects/SwaggerProvider/sessions/872fbd3c-11f7-4cfc-b551-87b698e37b4b
Co-authored-by: sergey-tihon <1197905+sergey-tihon@users.noreply.github.com>
* test: add DateOnly and None-omission form content regression tests
Agent-Logs-Url: https://github.com/fsprojects/SwaggerProvider/sessions/0d67ee77-3aa2-4d0c-9a7f-907ce2203d48
Co-authored-by: sergey-tihon <1197905+sergey-tihon@users.noreply.github.com>
* test: align multipart None omission test with async pattern
Agent-Logs-Url: https://github.com/fsprojects/SwaggerProvider/sessions/0d67ee77-3aa2-4d0c-9a7f-907ce2203d48
Co-authored-by: sergey-tihon <1197905+sergey-tihon@users.noreply.github.com>
* test: clarify nested option omission cases in form content tests
Agent-Logs-Url: https://github.com/fsprojects/SwaggerProvider/sessions/0d67ee77-3aa2-4d0c-9a7f-907ce2203d48
Co-authored-by: sergey-tihon <1197905+sergey-tihon@users.noreply.github.com>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: sergey-tihon <1197905+sergey-tihon@users.noreply.github.com>1 parent 8ef3c54 commit 072285f
2 files changed
Lines changed: 123 additions & 3 deletions
File tree
- src/SwaggerProvider.Runtime
- tests/SwaggerProvider.Tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
315 | | - | |
316 | | - | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
317 | 319 | | |
318 | 320 | | |
319 | 321 | | |
320 | 322 | | |
321 | 323 | | |
322 | 324 | | |
323 | 325 | | |
324 | | - | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
325 | 333 | | |
326 | 334 | | |
327 | 335 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
738 | 738 | | |
739 | 739 | | |
740 | 740 | | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
741 | 800 | | |
742 | 801 | | |
743 | 802 | | |
| |||
778 | 837 | | |
779 | 838 | | |
780 | 839 | | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
781 | 893 | | |
782 | 894 | | |
783 | 895 | | |
| |||
0 commit comments