Commit b7b25f0
models: Add serializer for first URL in list
- Implemented `_serialize_as_first_url` to extract the first URL from a list.
- Updated `url` in `ConvertToPdfPayload` to accept a list of `HttpUrl` with
enforced length of 1.
- Applied `PlainSerializer` to ensure only the first URL is serialized.
Assisted-by: Codex1 parent 2b60f45 commit b7b25f0
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
123 | 127 | | |
124 | 128 | | |
125 | 129 | | |
| |||
797 | 801 | | |
798 | 802 | | |
799 | 803 | | |
800 | | - | |
801 | | - | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
802 | 808 | | |
803 | 809 | | |
804 | 810 | | |
| |||
0 commit comments