Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
gaspar09 committed Dec 20, 2023
1 parent 1c51532 commit 8719102
Showing 1 changed file with 74 additions and 74 deletions.
148 changes: 74 additions & 74 deletions user/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,139 +2,139 @@ const Username = {
type: 'string',
minLength: 1,
maxLength: 48,
pattern: '^[a-z0-9][a-z0-9-]*[a-z0-9]$',
pattern: '^[a-z0-9][a-z0-9-]*[a-z0-9]$'
};

const Name = {
type: 'string',
minLength: 1,
maxLength: 32,
maxLength: 32
};

const Email = {
type: 'string',
minLength: 5,
maxLength: 256,
maxLength: 256
};

const ImportFlowGitProvider = {
oneOf: [
{
enum: ['github', 'gitlab', 'bitbucket'],
'enum': ['github', 'gitlab', 'bitbucket']
},
{
type: 'null',
},
],
type: 'null'
}
]
};

const ImportFlowGitNamespace = {
oneOf: [
{
type: 'string',
type: 'string'
},
{
type: 'null',
},
],
type: 'null'
}
]
};

const ImportFlowGitNamespaceId = {
oneOf: [
{
type: 'string',
type: 'string'
},
{
type: 'number',
type: 'number'
},
{
type: 'null',
},
],
type: 'null'
}
]
};

const ScopeId = {
type: 'string',
type: 'string'
};

const GitNamespaceId = {
oneOf: [
{
type: 'string',
type: 'string'
},
{
type: 'number',
type: 'number'
},
{
type: 'null',
},
],
type: 'null'
}
]
};

const ViewPreference = {
oneOf: [
{
enum: ['cards', 'list'],
'enum': ['cards', 'list']
},
{
type: 'null',
},
],
type: 'null'
}
]
};

const FavoritesViewPreference = {
oneOf: [
{
enum: ['open', 'closed'],
'enum': ['open', 'closed']
},
{
type: 'null',
},
],
type: 'null'
}
]
};

const PlatformVersion = {
oneOf: [
{
// A `null` platform version means to always use the latest
type: 'null',
type: 'null'
},
{
type: 'integer',
minimum: 1,
maximum: 2,
},
],
maximum: 2
}
]
};

const Avatar = {
type: 'string',
minLength: 40,
maxLength: 40,
pattern: '^[0-9a-f]+$',
pattern: '^[0-9a-f]+$'
};

const Bio = {
type: 'string',
type: 'string'
};

const Website = {
type: 'string',
minLength: 4,
maxLength: 40,
maxLength: 40
};

const Profile = {
type: 'object',
properties: {
service: {
type: 'string',
type: 'string'
},
link: {
type: 'string',
},
type: 'string'
}
},
additionalProperties: false,
additionalProperties: false
};

const Profiles = {
Expand All @@ -143,110 +143,110 @@ const Profiles = {
maxItems: 100,
uniqueItems: true,
items: Profile,
additionalProperties: false,
additionalProperties: false
};

const RemoteCaching = {
type: 'object',
properties: {
enabled: {
type: 'boolean',
},
type: 'boolean'
}
},
additionalProperties: false,
additionalProperties: false
};

const ToastDismissal = {
type: 'object',
properties: {
scopeId: {
type: 'string',
type: 'string'
},
createdAt: {
type: 'number',
},
type: 'number'
}
},
additionalProperties: false,
additionalProperties: false
};

const DismissedToast = {
type: 'object',
properties: {
name: {
type: 'string',
type: 'string'
},
dismissals: {
type: 'array',
minItems: 0,
maxItems: 50,
items: ToastDismissal,
},
items: ToastDismissal
}
},
additionalProperties: false,
additionalProperties: false
};

const DismissedToasts = {
type: 'array',
minItems: 0,
maxItems: 50,
items: DismissedToast,
additionalProperties: false,
additionalProperties: false
};

const FavoriteProjectOrSpace = {
type: 'object',
properties: {
projectId: {
type: 'string',
type: 'string'
},
spaceId: {
type: 'string',
type: 'string'
},
scopeId: {
type: 'string',
type: 'string'
},
scopeSlug: {
type: 'string',
},
type: 'string'
}
},
additionalProperties: false,
additionalProperties: false
};

const FavoriteProjectsAndSpaces = {
type: 'array',
minItems: 0,
items: FavoriteProjectOrSpace,
additionalProperties: false,
additionalProperties: false
};

const EnablePreviewFeedback = {
oneOf: [
{
enum: [
'enum': [
'on',
'off',
'default',
'on-force',
'off-force',
'default-force',
],
'default-force'
]
},
{
type: 'null',
},
],
type: 'null'
}
]
};

const DefaultTeamId = {
oneOf: [
{
type: 'string',
maxLength: 29,
maxLength: 29
},
{
type: 'null',
},
],
type: 'null'
}
]
};

const User = {
Expand All @@ -273,8 +273,8 @@ const User = {
dismissedToasts: DismissedToasts,
enablePreviewFeedback: EnablePreviewFeedback,
favoriteProjectsAndSpaces: FavoriteProjectsAndSpaces,
defaultTeamId: DefaultTeamId,
},
defaultTeamId: DefaultTeamId
}
};

module.exports = {
Expand All @@ -290,5 +290,5 @@ module.exports = {
ScopeId,
GitNamespaceId,
ViewPreference,
DismissedToasts,
DismissedToasts
};

0 comments on commit 8719102

Please sign in to comment.