Skip to content

Commit

Permalink
Update JSON schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
any-association committed Oct 15, 2023
1 parent 001c1dc commit 8c3dd93
Show file tree
Hide file tree
Showing 8 changed files with 98 additions and 5 deletions.
6 changes: 4 additions & 2 deletions json/models/Account.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,14 @@
"type": "string"
},
"accountSpaceId": {
"type": "string",
"description": "marketplace template id"
"type": "string"
},
"widgetsId": {
"type": "string"
},
"spaceViewId": {
"type": "string"
},
"gatewayUrl": {
"type": "string",
"description": "gateway url for fetching static files"
Expand Down
4 changes: 3 additions & 1 deletion json/models/Block.json
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,9 @@
"Gallery",
2,
"Kanban",
3
3,
"Calendar",
4
],
"oneOf": [
{
Expand Down
8 changes: 8 additions & 0 deletions json/models/Layout.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@
13,
"collection",
14,
"audio",
15,
"video",
16,
"date",
17,
"spaceView",
18,
"database",
20
],
Expand Down
29 changes: 29 additions & 0 deletions json/models/Metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$ref": "#/definitions/Metadata",
"definitions": {
"Metadata": {
"properties": {
"identity": {
"$ref": "#/definitions/anytype.model.Metadata.Payload.IdentityPayload",
"additionalProperties": true
}
},
"additionalProperties": true,
"type": "object",
"title": "Metadata"
},
"anytype.model.Metadata.Payload.IdentityPayload": {
"properties": {
"profileSymKey": {
"type": "string",
"format": "binary",
"binaryEncoding": "base64"
}
},
"additionalProperties": true,
"type": "object",
"title": "Identity Payload"
}
}
}
20 changes: 20 additions & 0 deletions json/models/ObjectType.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@
13,
"collection",
14,
"audio",
15,
"video",
16,
"date",
17,
"spaceView",
18,
"database",
20
],
Expand Down Expand Up @@ -110,6 +118,14 @@
516,
"Workspace",
518,
"STRelation",
521,
"STType",
528,
"STRelationOption",
529,
"SpaceView",
530,
"MissingObject",
519
]
Expand All @@ -123,6 +139,10 @@
},
"installedByDefault": {
"type": "boolean"
},
"key": {
"type": "string",
"description": "name of objectType (can be localized for bundled types)"
}
},
"additionalProperties": true,
Expand Down
12 changes: 11 additions & 1 deletion json/models/ObjectView.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@
516,
"Workspace",
518,
"STRelation",
521,
"STType",
528,
"STRelationOption",
529,
"SpaceView",
530,
"MissingObject",
519
],
Expand Down Expand Up @@ -752,7 +760,9 @@
"Gallery",
2,
"Kanban",
3
3,
"Calendar",
4
],
"oneOf": [
{
Expand Down
8 changes: 7 additions & 1 deletion json/models/SmartBlockSnapshotBase.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@
"$ref": "#/definitions/anytype.model.RelationLink"
},
"type": "array"
},
"key": {
"type": "string",
"description": "this field is not passing to the crdt changes and can be only set in the snapshot"
}
},
"additionalProperties": true,
Expand Down Expand Up @@ -709,7 +713,9 @@
"Gallery",
2,
"Kanban",
3
3,
"Calendar",
4
],
"oneOf": [
{
Expand Down
16 changes: 16 additions & 0 deletions json/models/SpaceObjectHeader.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$ref": "#/definitions/SpaceObjectHeader",
"definitions": {
"SpaceObjectHeader": {
"properties": {
"spaceID": {
"type": "string"
}
},
"additionalProperties": true,
"type": "object",
"title": "Space Object Header"
}
}
}

0 comments on commit 8c3dd93

Please sign in to comment.