diaspora_federation-json_schema 0.2.3 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/diaspora_federation/schemas/federation_entities.json +33 -11
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 134d778f441f5a1fd514e1c7d9c2db5185b026abfa58e04dcd6feabc0294a92f
|
4
|
+
data.tar.gz: fd2ad4b5b966de104f9c447e4bf6e0122bf36624d83eba528842a581d3cbbe94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c7183a6c8b2b49e341fd81bd6001020cc40fa7b57579fa729e867fcb375b34e2bddc3236a3a421b2a571291d623d07e82da7f48ac30b396d96b9739e06c2cc6
|
7
|
+
data.tar.gz: ea8b0ff3268a0c0abe6e4daedf4a9f0a005fa7f5742998fa646702190f7b9b7dd16bfe2afeb05c0fa27b95a2c02eab2b3dc3b6592658ed5720a325f01c4024ea
|
@@ -10,6 +10,7 @@
|
|
10
10
|
{"$ref": "#/definitions/reshare"},
|
11
11
|
{"$ref": "#/definitions/profile"},
|
12
12
|
{"$ref": "#/definitions/location"},
|
13
|
+
{"$ref": "#/definitions/embed"},
|
13
14
|
{"$ref": "#/definitions/photo"},
|
14
15
|
{"$ref": "#/definitions/poll"},
|
15
16
|
{"$ref": "#/definitions/poll_answer"}
|
@@ -101,7 +102,7 @@
|
|
101
102
|
"positive": { "type": "boolean" },
|
102
103
|
"parent_type": { "enum": ["Post", "Comment"] }
|
103
104
|
},
|
104
|
-
"required": ["positive"]
|
105
|
+
"required": ["positive", "parent_type"]
|
105
106
|
}
|
106
107
|
}
|
107
108
|
}
|
@@ -164,11 +165,11 @@
|
|
164
165
|
"required": [
|
165
166
|
"guid", "public", "created_at"
|
166
167
|
]
|
167
|
-
}
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
168
|
+
}
|
169
|
+
},
|
170
|
+
"required": [
|
171
|
+
"entity_type", "entity_data"
|
172
|
+
]
|
172
173
|
},
|
173
174
|
|
174
175
|
"status_message": {
|
@@ -231,10 +232,10 @@
|
|
231
232
|
"root_author": {"type": "string"},
|
232
233
|
"root_guid": {"$ref": "#/definitions/guid"}
|
233
234
|
},
|
234
|
-
"required": ["author", "guid", "created_at"
|
235
|
-
}
|
236
|
-
|
237
|
-
|
235
|
+
"required": ["author", "guid", "created_at"]
|
236
|
+
}
|
237
|
+
},
|
238
|
+
"required": ["entity_type", "entity_data"]
|
238
239
|
},
|
239
240
|
|
240
241
|
"profile": {
|
@@ -247,6 +248,7 @@
|
|
247
248
|
"entity_data": {
|
248
249
|
"type": "object",
|
249
250
|
"properties": {
|
251
|
+
"full_name": { "type": ["string", "null"] },
|
250
252
|
"first_name": { "type": ["string", "null"] },
|
251
253
|
"last_name": { "type": ["string", "null"] },
|
252
254
|
"gender": { "type": ["string", "null"] },
|
@@ -286,7 +288,7 @@
|
|
286
288
|
"height": {"type": "number"}
|
287
289
|
},
|
288
290
|
"required": [
|
289
|
-
"author", "guid", "public", "created_at", "remote_photo_path", "remote_photo_name"
|
291
|
+
"author", "guid", "public", "created_at", "remote_photo_path", "remote_photo_name"
|
290
292
|
]
|
291
293
|
}
|
292
294
|
}
|
@@ -372,6 +374,26 @@
|
|
372
374
|
]
|
373
375
|
}
|
374
376
|
}
|
377
|
+
},
|
378
|
+
|
379
|
+
"embed": {
|
380
|
+
"type": "object",
|
381
|
+
"properties": {
|
382
|
+
"entity_type": {
|
383
|
+
"type": "string",
|
384
|
+
"pattern": "^embed$"
|
385
|
+
},
|
386
|
+
"entity_data": {
|
387
|
+
"type": "object",
|
388
|
+
"properties": {
|
389
|
+
"url": { "type": ["string", "null"] },
|
390
|
+
"title": { "type": ["string", "null"] },
|
391
|
+
"description": { "type": ["string", "null"] },
|
392
|
+
"image": { "type": ["string", "null"] },
|
393
|
+
"nothing": { "type": "boolean" }
|
394
|
+
}
|
395
|
+
}
|
396
|
+
}
|
375
397
|
}
|
376
398
|
}
|
377
399
|
}
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: diaspora_federation-json_schema
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benjamin Neff
|
8
8
|
- cmrd Senya
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-10-24 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: This gem provides JSON schemas (currently one schema) for validating
|
15
15
|
JSON serialized federation objects.
|
@@ -26,7 +26,7 @@ homepage: https://github.com/diaspora/diaspora_federation
|
|
26
26
|
licenses:
|
27
27
|
- AGPL-3.0
|
28
28
|
metadata: {}
|
29
|
-
post_install_message:
|
29
|
+
post_install_message:
|
30
30
|
rdoc_options: []
|
31
31
|
require_paths:
|
32
32
|
- lib
|
@@ -41,9 +41,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: '0'
|
43
43
|
requirements: []
|
44
|
-
|
45
|
-
|
46
|
-
signing_key:
|
44
|
+
rubygems_version: 3.0.9
|
45
|
+
signing_key:
|
47
46
|
specification_version: 4
|
48
47
|
summary: diaspora* federation json schemas
|
49
48
|
test_files: []
|