-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from the-grid/collaboration
Initial collab docs
- Loading branch information
Showing
5 changed files
with
136 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
- | ||
_valid: true | ||
_name: "accepted-by-url" | ||
_data: | ||
id: 5 | ||
collaborator: 'http://bergie.today/' | ||
accepted: true | ||
rejected: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
- | ||
_valid: true | ||
_name: 'email' | ||
_data: | ||
email: '[email protected]' | ||
name: 'Test User' | ||
subject: 'Join my cool site' | ||
sender: 'A Grid User' | ||
- | ||
_valid: true | ||
_name: 'url' | ||
_data: | ||
url: 'https://example.net' | ||
- | ||
_valid: false | ||
_name: 'url-and-email' | ||
_data: | ||
url: 'https://example.net' | ||
email: '[email protected]' | ||
name: 'Test User' | ||
- | ||
_valid: false | ||
_name: 'invalid-email' | ||
_data: | ||
email: 'foobar' | ||
name: 'Test User' | ||
- | ||
_valid: false | ||
_name: 'invalid-url' | ||
_data: | ||
url: 'Cool Site' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
id: collaborator.json | ||
"$schema": "http://json-schema.org/draft-04/schema" | ||
title: Site collaborator | ||
description: "" | ||
type: | ||
- object | ||
properties: | ||
id: | ||
type: integer | ||
collaborator: | ||
describe: "Collaborator label" | ||
oneOf: | ||
- { "$ref": "base.json#/definitions/url" } | ||
- { "$ref": "base.json#/definitions/email" } | ||
accepted: | ||
describe: "Whether collaborator has accepted the invitation" | ||
type: boolean | ||
rejected: | ||
describe: "Whether collaborator has rejected the invitation" | ||
type: boolean | ||
created_at: | ||
type: string | ||
format: 'date-time' | ||
updated_at: | ||
oneOf: | ||
- { type: 'null' } | ||
- { type: 'string', format: 'date-time' } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
id: collaboratorinvite.json | ||
"$schema": "http://json-schema.org/draft-04/schema" | ||
title: Site collaborator invitation | ||
description: "" | ||
type: | ||
- object | ||
properties: | ||
url: | ||
description: "Grid site URL to invite the owner as collaborator" | ||
"$ref": "base.json#/definitions/url" | ||
email: | ||
description: "Email address of collaborator to invite" | ||
"$ref": "base.json#/definitions/email" | ||
name: | ||
description: "Name of the person to invite" | ||
type: string | ||
subject: | ||
description: "Subject of the invitation" | ||
type: string | ||
sender: | ||
description: "Invitation sender name" | ||
type: string | ||
additionalProperties: false | ||
|
||
oneOf: | ||
- { required: [url] } | ||
- { required: [email, name] } |