diaspora_federation-json_schema 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 3b548250206bf0705f5ed4fdf55d34ac08f13cfc
4
- data.tar.gz: 9b12c75bfe289e52db3cf3e47d3081f93bcf9170
2
+ SHA256:
3
+ metadata.gz: 9f88c6ac8996496ad621d43d923828e5fd365799ec162667adc4cb74185cc8ed
4
+ data.tar.gz: bd28862e22e0b18569922e66ec5ac72d6867d40981711972fa1b4f0a8c74b909
5
5
  SHA512:
6
- metadata.gz: 7cc94830d5e56e61089d2d95e03ffa81f17f1126afaea479bc63be0ff14f1339797ff5988ec17398d4766cedeeefc2a60bade153e439dae7819e53c0b0f49587
7
- data.tar.gz: fba8f405388dd68f3feede4ad7d5eb22d6c16558a1af9535c2cf3c07db1cb92729fc868ce0d6d147215d099acb3de917b0e147d2c9aca489b7b2f6bca5d68916
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
- "required": [
169
- "entity_type", "entity_data"
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", "root_author", "root_guid"]
235
- },
236
- "required": ["entity_type", "entity_data"]
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
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-02-18 00:00:00.000000000 Z
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.6.14
45
+ rubygems_version: 2.7.7
46
46
  signing_key:
47
47
  specification_version: 4
48
48
  summary: diaspora* federation json schemas