Skip to content

Commit a029635

Browse files
Schema should allow link objects as pagination links (json-api#1379)
* Schema should allow link objects as pagination links * linkage -> link (json-api#1) Probably caused by your IDE's autocompletion :) (Fixing this per json-api#1379 (review).) Co-authored-by: Wim Leers <work@wimleers.com>
1 parent a48ee3f commit a029635

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

schema

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -305,28 +305,28 @@
305305
"first": {
306306
"description": "The first page of data",
307307
"oneOf": [
308-
{ "type": "string", "format": "uri-reference" },
308+
{ "$ref": "#/definitions/link" },
309309
{ "type": "null" }
310310
]
311311
},
312312
"last": {
313313
"description": "The last page of data",
314314
"oneOf": [
315-
{ "type": "string", "format": "uri-reference" },
315+
{ "$ref": "#/definitions/link" },
316316
{ "type": "null" }
317317
]
318318
},
319319
"prev": {
320320
"description": "The previous page of data",
321321
"oneOf": [
322-
{ "type": "string", "format": "uri-reference" },
322+
{ "$ref": "#/definitions/link" },
323323
{ "type": "null" }
324324
]
325325
},
326326
"next": {
327327
"description": "The next page of data",
328328
"oneOf": [
329-
{ "type": "string", "format": "uri-reference" },
329+
{ "$ref": "#/definitions/link" },
330330
{ "type": "null" }
331331
]
332332
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy