Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
110 changes: 110 additions & 0 deletions pydatalab/schemas/cell.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,28 @@
"type": "string"
}
},
"group_ids": {
"title": "Group Ids",
"default": [],
"type": "array",
"items": {
"type": "string"
}
},
"creators": {
"title": "Creators",
"type": "array",
"items": {
"$ref": "#/definitions/Person"
}
},
"groups": {
"title": "Groups",
"type": "array",
"items": {
"$ref": "#/definitions/Group"
}
},
"type": {
"title": "Type",
"default": "cells",
Expand Down Expand Up @@ -275,6 +290,64 @@
"name"
]
},
"Group": {
"title": "Group",
"description": "A model that describes a group of users, for the sake\nof applying group permissions.\n\nEach `Person` model can point to a given group.",
"type": "object",
"properties": {
"type": {
"title": "Type",
"default": "groups",
"const": "groups",
"type": "string"
},
"immutable_id": {
"title": "Immutable ID",
"format": "uuid",
"type": "string"
},
"last_modified": {
"title": "Last Modified",
"type": "string",
"format": "date-time"
},
"relationships": {
"title": "Relationships",
"type": "array",
"items": {
"$ref": "#/definitions/TypedRelationship"
}
},
"group_id": {
"title": "Group Id",
"minLength": 1,
"maxLength": 40,
"pattern": "^(?:[a-zA-Z0-9]+|[a-zA-Z0-9][a-zA-Z0-9._-]+[a-zA-Z0-9])$",
"type": "string"
},
"display_name": {
"title": "Display Name",
"minLength": 1,
"maxLength": 150,
"type": "string"
},
"description": {
"title": "Description",
"type": "string"
},
"group_admins": {
"title": "Group Admins",
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"group_id",
"display_name"
]
},
"AccountStatus": {
"title": "AccountStatus",
"description": "A string enum representing the account status.",
Expand Down Expand Up @@ -331,6 +404,13 @@
"type": "string",
"format": "email"
},
"groups": {
"title": "Groups",
"type": "array",
"items": {
"$ref": "#/definitions/Group"
}
},
"managers": {
"title": "Managers",
"type": "array",
Expand Down Expand Up @@ -374,13 +454,28 @@
"type": "string"
}
},
"group_ids": {
"title": "Group Ids",
"default": [],
"type": "array",
"items": {
"type": "string"
}
},
"creators": {
"title": "Creators",
"type": "array",
"items": {
"$ref": "#/definitions/Person"
}
},
"groups": {
"title": "Groups",
"type": "array",
"items": {
"$ref": "#/definitions/Group"
}
},
"type": {
"title": "Type",
"default": "collections",
Expand Down Expand Up @@ -448,13 +543,28 @@
"type": "string"
}
},
"group_ids": {
"title": "Group Ids",
"default": [],
"type": "array",
"items": {
"type": "string"
}
},
"creators": {
"title": "Creators",
"type": "array",
"items": {
"$ref": "#/definitions/Person"
}
},
"groups": {
"title": "Groups",
"type": "array",
"items": {
"$ref": "#/definitions/Group"
}
},
"type": {
"title": "Type",
"default": "files",
Expand Down
110 changes: 110 additions & 0 deletions pydatalab/schemas/equipment.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,28 @@
"type": "string"
}
},
"group_ids": {
"title": "Group Ids",
"default": [],
"type": "array",
"items": {
"type": "string"
}
},
"creators": {
"title": "Creators",
"type": "array",
"items": {
"$ref": "#/definitions/Person"
}
},
"groups": {
"title": "Groups",
"type": "array",
"items": {
"$ref": "#/definitions/Group"
}
},
"type": {
"title": "Type",
"default": "equipment",
Expand Down Expand Up @@ -239,6 +254,64 @@
"name"
]
},
"Group": {
"title": "Group",
"description": "A model that describes a group of users, for the sake\nof applying group permissions.\n\nEach `Person` model can point to a given group.",
"type": "object",
"properties": {
"type": {
"title": "Type",
"default": "groups",
"const": "groups",
"type": "string"
},
"immutable_id": {
"title": "Immutable ID",
"format": "uuid",
"type": "string"
},
"last_modified": {
"title": "Last Modified",
"type": "string",
"format": "date-time"
},
"relationships": {
"title": "Relationships",
"type": "array",
"items": {
"$ref": "#/definitions/TypedRelationship"
}
},
"group_id": {
"title": "Group Id",
"minLength": 1,
"maxLength": 40,
"pattern": "^(?:[a-zA-Z0-9]+|[a-zA-Z0-9][a-zA-Z0-9._-]+[a-zA-Z0-9])$",
"type": "string"
},
"display_name": {
"title": "Display Name",
"minLength": 1,
"maxLength": 150,
"type": "string"
},
"description": {
"title": "Description",
"type": "string"
},
"group_admins": {
"title": "Group Admins",
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"group_id",
"display_name"
]
},
"AccountStatus": {
"title": "AccountStatus",
"description": "A string enum representing the account status.",
Expand Down Expand Up @@ -295,6 +368,13 @@
"type": "string",
"format": "email"
},
"groups": {
"title": "Groups",
"type": "array",
"items": {
"$ref": "#/definitions/Group"
}
},
"managers": {
"title": "Managers",
"type": "array",
Expand Down Expand Up @@ -338,13 +418,28 @@
"type": "string"
}
},
"group_ids": {
"title": "Group Ids",
"default": [],
"type": "array",
"items": {
"type": "string"
}
},
"creators": {
"title": "Creators",
"type": "array",
"items": {
"$ref": "#/definitions/Person"
}
},
"groups": {
"title": "Groups",
"type": "array",
"items": {
"$ref": "#/definitions/Group"
}
},
"type": {
"title": "Type",
"default": "collections",
Expand Down Expand Up @@ -412,13 +507,28 @@
"type": "string"
}
},
"group_ids": {
"title": "Group Ids",
"default": [],
"type": "array",
"items": {
"type": "string"
}
},
"creators": {
"title": "Creators",
"type": "array",
"items": {
"$ref": "#/definitions/Person"
}
},
"groups": {
"title": "Groups",
"type": "array",
"items": {
"$ref": "#/definitions/Group"
}
},
"type": {
"title": "Type",
"default": "files",
Expand Down
Loading
Loading