Initial commit

This commit is contained in:
2021-08-24 19:21:14 +02:00
commit 02f21f1ccd
2407 changed files with 1130275 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
const Username = {
type: 'string',
minLength: 1,
maxLength: 48,
pattern: '^[a-z][a-z0-9_-]*$'
};
const Name = {
type: 'string',
minLength: 1,
maxLength: 32
};
const Avatar = {
type: 'string',
minLength: 40,
maxLength: 40,
pattern: '^[0-9a-f]+$'
};
const DefaultDeploymentDomain = {
type: 'string'
};
const User = {
type: 'object',
additionalProperties: false,
properties: {
username: Username,
name: Name,
billingChecked: {type: 'boolean'},
avatar: Avatar,
defaultDeploymentDomain: DefaultDeploymentDomain
}
};
module.exports = {
User,
Username,
Name,
Avatar,
DefaultDeploymentDomain
};