diaspora_federation-json_schema 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/lib/diaspora_federation/schemas/federation_entities.json +32 -10
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 9f88c6ac8996496ad621d43d923828e5fd365799ec162667adc4cb74185cc8ed
|
|
4
|
+
data.tar.gz: bd28862e22e0b18569922e66ec5ac72d6867d40981711972fa1b4f0a8c74b909
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 451866e0436d0a667a48bf08360eb539deba8c781ef15c5d7d1c281d1a926daed8ea061c1f415de7bbc3e3babe021302b7e34f1a94243c8bdc9355b7bcd41f8f
|
|
7
|
+
data.tar.gz: c25b91ff5b8d91d9fa625608dfc575439d13cde95a6d0e2e38c7c1122f1507d5f2578a25616be7dcd0d6caa5c0bc0fc762e211f51ead26af844fbdb9fd5241a2
|
|
@@ -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"] },
|
|
@@ -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,7 +1,7 @@
|
|
|
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.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Benjamin Neff
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2018-
|
|
12
|
+
date: 2018-10-05 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.
|
|
@@ -42,7 +42,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
42
42
|
version: '0'
|
|
43
43
|
requirements: []
|
|
44
44
|
rubyforge_project:
|
|
45
|
-
rubygems_version: 2.
|
|
45
|
+
rubygems_version: 2.7.7
|
|
46
46
|
signing_key:
|
|
47
47
|
specification_version: 4
|
|
48
48
|
summary: diaspora* federation json schemas
|