Skip to content

Commit

Permalink
Add description and requirements for maxLength and patterns
Browse files Browse the repository at this point in the history
Co-authored-by: nomx3 <[email protected]>
  • Loading branch information
johnksv and nomx3 committed Jan 18, 2024
1 parent 1af1ccc commit d2c577b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/partials/v1/team-info-metadata.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"team_name": {
"description": "The (uniform) name of this team",
"type": "string",
"minLength": 1
"minLength": 1,
"maxLength": 16
},
"name": {
"description": "Name of this resource",
Expand Down
14 changes: 10 additions & 4 deletions src/v1/kuben-team-definition.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"properties": {
"uniform_name": {
"type": "string",
"pattern": "^[a-z-]*$"
"pattern": "^[a-z-]*$",
"maxLength": 16
},
"display_name": {
"type": "string",
Expand Down Expand Up @@ -82,9 +83,10 @@
},
"repos": {
"type": "array",
"description": "Which repositories the team atlantis will monitor",
"description": "Which repositories under Statistics Norway-organisation this team atlantis instance will monitor.",
"items": {
"type": "string"
"type": "string",
"pattern": "^[a-zA-Z-_.0-9]*$"
}
}
}
Expand All @@ -102,7 +104,11 @@
},
"repos": {
"type": "array",
"description": "A list of github repos that should be able to push to artifact registry"
"description": "A list of github repositories under Statistics Norway-organisation that is allowed to push to Artifact Registry repositories of the team.",
"items": {
"type": "string",
"pattern": "^[a-zA-Z-_.0-9]*$"
}
}
}
}
Expand Down

0 comments on commit d2c577b

Please sign in to comment.