|
1 | 1 | # generated by datamodel-codegen: |
2 | 2 | # filename: api.spec.yaml |
3 | | -# timestamp: 2024-08-09T12:39:58+00:00 |
| 3 | +# timestamp: 2024-08-12T07:20:07+00:00 |
4 | 4 |
|
5 | 5 | from __future__ import annotations |
6 | 6 |
|
@@ -76,13 +76,13 @@ class RCloneOption(BaseAPISpec): |
76 | 76 | ) |
77 | 77 |
|
78 | 78 |
|
79 | | -class UlidId(RootModel[str]): |
| 79 | +class Ulid(RootModel[str]): |
80 | 80 | root: str = Field( |
81 | 81 | ..., |
82 | | - description="ULID identifier of an object", |
| 82 | + description="ULID identifier", |
83 | 83 | max_length=26, |
84 | 84 | min_length=26, |
85 | | - pattern="^[A-Z0-9]+$", |
| 85 | + pattern="^[0-7][0-9A-HJKMNP-TV-Z]{25}$", |
86 | 86 | ) |
87 | 87 |
|
88 | 88 |
|
@@ -113,10 +113,10 @@ class StorageV2Params(BaseAPISpec): |
113 | 113 | ) |
114 | 114 | project_id: str = Field( |
115 | 115 | ..., |
116 | | - description="ULID identifier of an object", |
| 116 | + description="ULID identifier", |
117 | 117 | max_length=26, |
118 | 118 | min_length=26, |
119 | | - pattern="^[A-Z0-9]+$", |
| 119 | + pattern="^[0-7][0-9A-HJKMNP-TV-Z]{25}$", |
120 | 120 | ) |
121 | 121 |
|
122 | 122 |
|
@@ -154,7 +154,7 @@ class StorageSchemaObscurePostRequest(BaseAPISpec): |
154 | 154 |
|
155 | 155 |
|
156 | 156 | class GitRequest(BaseAPISpec): |
157 | | - project_id: Union[GitlabProjectId, UlidId] |
| 157 | + project_id: Union[GitlabProjectId, Ulid] |
158 | 158 |
|
159 | 159 |
|
160 | 160 | class CloudStorageUrl(GitRequest): |
@@ -197,7 +197,7 @@ class CloudStorage(GitRequest): |
197 | 197 |
|
198 | 198 |
|
199 | 199 | class CloudStoragePatch(BaseAPISpec): |
200 | | - project_id: Optional[Union[GitlabProjectId, UlidId]] = None |
| 200 | + project_id: Optional[Union[GitlabProjectId, Ulid]] = None |
201 | 201 | storage_type: Optional[str] = Field( |
202 | 202 | None, |
203 | 203 | description="same as rclone prefix/ rclone config type. Ignored in requests, but returned in responses for convenience.", |
@@ -229,10 +229,10 @@ class CloudStoragePatch(BaseAPISpec): |
229 | 229 | class CloudStorageWithId(CloudStorage): |
230 | 230 | storage_id: str = Field( |
231 | 231 | ..., |
232 | | - description="ULID identifier of an object", |
| 232 | + description="ULID identifier", |
233 | 233 | max_length=26, |
234 | 234 | min_length=26, |
235 | | - pattern="^[A-Z0-9]+$", |
| 235 | + pattern="^[0-7][0-9A-HJKMNP-TV-Z]{25}$", |
236 | 236 | ) |
237 | 237 |
|
238 | 238 |
|
|
0 commit comments