|
1 | 1 | # generated by datamodel-codegen: |
2 | 2 | # filename: public-api.yaml |
3 | | -# timestamp: 2025-10-20T17:20:11+00:00 |
| 3 | +# timestamp: 2025-10-20T17:36:39+00:00 |
4 | 4 |
|
5 | 5 | from __future__ import annotations |
6 | 6 |
|
@@ -486,16 +486,16 @@ class LabelValueRequest(BaseModel): |
486 | 486 |
|
487 | 487 |
|
488 | 488 | class PaginatedDetectorList(BaseModel): |
489 | | - count: int = Field(..., example=123) |
490 | | - next: Optional[AnyUrl] = Field(None, example="http://api.example.org/accounts/?page=4") |
491 | | - previous: Optional[AnyUrl] = Field(None, example="http://api.example.org/accounts/?page=2") |
| 489 | + count: int = Field(..., examples=[123]) |
| 490 | + next: Optional[AnyUrl] = Field(None, examples=["http://api.example.org/accounts/?page=4"]) |
| 491 | + previous: Optional[AnyUrl] = Field(None, examples=["http://api.example.org/accounts/?page=2"]) |
492 | 492 | results: List[Detector] |
493 | 493 |
|
494 | 494 |
|
495 | 495 | class PaginatedImageQueryList(BaseModel): |
496 | | - count: int = Field(..., example=123) |
497 | | - next: Optional[AnyUrl] = Field(None, example="http://api.example.org/accounts/?page=4") |
498 | | - previous: Optional[AnyUrl] = Field(None, example="http://api.example.org/accounts/?page=2") |
| 496 | + count: int = Field(..., examples=[123]) |
| 497 | + next: Optional[AnyUrl] = Field(None, examples=["http://api.example.org/accounts/?page=4"]) |
| 498 | + previous: Optional[AnyUrl] = Field(None, examples=["http://api.example.org/accounts/?page=2"]) |
499 | 499 | results: List[ImageQuery] |
500 | 500 |
|
501 | 501 |
|
@@ -552,7 +552,7 @@ class RuleRequest(BaseModel): |
552 | 552 |
|
553 | 553 |
|
554 | 554 | class PaginatedRuleList(BaseModel): |
555 | | - count: int = Field(..., example=123) |
556 | | - next: Optional[AnyUrl] = Field(None, example="http://api.example.org/accounts/?page=4") |
557 | | - previous: Optional[AnyUrl] = Field(None, example="http://api.example.org/accounts/?page=2") |
| 555 | + count: int = Field(..., examples=[123]) |
| 556 | + next: Optional[AnyUrl] = Field(None, examples=["http://api.example.org/accounts/?page=4"]) |
| 557 | + previous: Optional[AnyUrl] = Field(None, examples=["http://api.example.org/accounts/?page=2"]) |
558 | 558 | results: List[Rule] |
0 commit comments