Skip to content

Commit b1ddb0c

Browse files
fix: Add utoipa schema for contract testing (#2022)
* fix: Add utoipa schema for contract testing * Update common/src/models/project.rs Co-authored-by: jonaro00 <[email protected]> --------- Co-authored-by: jonaro00 <[email protected]>
1 parent cb3b7ce commit b1ddb0c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

common/src/models/project.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ use super::deployment::DeploymentState;
1313
#[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))]
1414
#[typeshare::typeshare]
1515
pub struct ProjectCreateRequest {
16+
#[cfg_attr(feature = "utoipa", schema(pattern = "^[a-z0-9-]{1,32}"))]
1617
pub name: String,
1718
}
1819

0 commit comments

Comments
 (0)