Skip to content
Merged
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
493 changes: 20 additions & 473 deletions extensions/data-transfer/portability-data-transfer-generic/README.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"$schema" : "https://json-schema.org/draft/2020-12/schema",
"$id": "https://id.schemas.pub/org/dtinit.org/dtp/media-0.1.0",
"$id": "https://id.schemas.pub/o/dtinit.org/dtp/album-schema",
"title": "Schema for Album metadata in data-transfer-project generic endpoints",
"type": "object",
"properties": {
"description": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://id.schemas.pub/o/dtinit.org/dtp/calendar-schema",
"title": "Schema for Calendar object info in data-transfer-project generic endpoints",
"$defs": {
"CalendarEventTime": {
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://id.schemas.pub/o/dtinit.org/dtp/error-schema",
"title": "Schema for Album metadata in data-transfer-project generic endpoints",
"type": "object",
"properties": {
"error": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://id.schemas.pub/o/dtinit.org/dtp/file-schema",
"title": "Schema for file (blob) metadata in data-transfer-project generic endpoints",
"type": "object",
"properties": {
"dateModified": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://id.schemas.pub/o/dtinit.org/dtp/folder-schema",
"title": "Schema for folder metadata in data-transfer-project generic endpoints",
"type": "object",
"properties": {
"path": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://id.schemas.pub/o/dtinit.org/dtp/payload-schema",
"title": "Schema for payload wrapper in data-transfer-project generic endpoints",
"type": "object",
"properties": {
"apiVersion": {
Expand All @@ -9,9 +11,14 @@
"type": "object",
"description": "The inner payload, which contains data from one of the described data verticals",
"minProperties": 1,
"anyOf": [{
"$ref": "media-schema.json"
}]
"anyOf": [
{ "$ref": "album-schema" },
{ "$ref": "calendar-schema" },
{ "$ref": "file-schema" },
{ "$ref": "folder-schema" },
{ "$ref": "photo-and-video-schema" },
{ "$ref": "social-posts-schema" }
]
},
"schemaSource": {
"type": "string",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"$schema" : "https://json-schema.org/draft/2020-12/schema",
"$id": "https://id.schemas.pub/o/dtinit.org/dtp/photo-and-video-schema",
"title": "Schema for photo and video metadata in data-transfer-project generic endpoints",
"$defs": {
"FavoriteInfo": {
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,28 @@
"schemaSource": ".../SocialPostsSerializer.java",
"apiVersion": "0.1.0",
"payload": {
"@type": "SocialActivityData",
"@type": "SocialActivity",
"metadata": {
"@type": "SocialActivityMetadata",
"actor": {
"@type": "SocialActivityActor",
"id": "321",
"name": "Steve",
"url": null
"url": "http://example.org/actor/321"
}
},
"activity": {
"@type": "SocialActivityModel",
"id": "456",
"published": 1731604863.845677,
"published": "1731604863.845677",
"type": "NOTE",
"attachments": [
{
"@type": "SocialActivityAttachment",
"type": "IMAGE",
"url": "foo.com",
"name": "Foo",
"content": null
"content": "Example content"
}
],
"location": {
Expand All @@ -35,7 +35,7 @@
},
"title": "Hello world!",
"content": "Hi there",
"url": null
"url": "http://example.org/post/foo"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://id.schemas.pub/o/dtinit.org/dtp/social-posts-schema",
"title": "Schema for social post object data in data-transfer-project generic endpoints",
"type": "object",
"properties": {
"activity": {
Expand Down
Loading