Commit c0ff1eb
committed
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 ee115b1 commit c0ff1eb
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
121 | 125 | | |
122 | 126 | | |
123 | 127 | | |
| |||
748 | 752 | | |
749 | 753 | | |
750 | 754 | | |
751 | | - | |
752 | | - | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
753 | 759 | | |
754 | 760 | | |
755 | 761 | | |
| |||
0 commit comments