From bc1d32924482abf6578448ac3193f75e1f49cd71 Mon Sep 17 00:00:00 2001 From: Gabriel SULLICE Date: Wed, 6 Mar 2019 19:32:38 -0700 Subject: [PATCH 1/2] Schema should allow link objects as pagination links --- schema | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/schema b/schema index 0b8332068..ec786d8aa 100644 --- a/schema +++ b/schema @@ -292,28 +292,28 @@ "first": { "description": "The first page of data", "oneOf": [ - { "type": "string", "format": "uri-reference" }, + { "$ref": "#/definitions/linkage" }, { "type": "null" } ] }, "last": { "description": "The last page of data", "oneOf": [ - { "type": "string", "format": "uri-reference" }, + { "$ref": "#/definitions/linkage" }, { "type": "null" } ] }, "prev": { "description": "The previous page of data", "oneOf": [ - { "type": "string", "format": "uri-reference" }, + { "$ref": "#/definitions/linkage" }, { "type": "null" } ] }, "next": { "description": "The next page of data", "oneOf": [ - { "type": "string", "format": "uri-reference" }, + { "$ref": "#/definitions/linkage" }, { "type": "null" } ] } From 2005c6adb4653cc0f465b2f216fd52d8913e5a32 Mon Sep 17 00:00:00 2001 From: Wim Leers Date: Fri, 8 Mar 2019 15:43:24 +0100 Subject: [PATCH 2/2] linkage -> link (#1) Probably caused by your IDE's autocompletion :) (Fixing this per https://github.com/json-api/json-api/pull/1379#pullrequestreview-212263141.) --- schema | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/schema b/schema index ec786d8aa..efb547d5e 100644 --- a/schema +++ b/schema @@ -292,28 +292,28 @@ "first": { "description": "The first page of data", "oneOf": [ - { "$ref": "#/definitions/linkage" }, + { "$ref": "#/definitions/link" }, { "type": "null" } ] }, "last": { "description": "The last page of data", "oneOf": [ - { "$ref": "#/definitions/linkage" }, + { "$ref": "#/definitions/link" }, { "type": "null" } ] }, "prev": { "description": "The previous page of data", "oneOf": [ - { "$ref": "#/definitions/linkage" }, + { "$ref": "#/definitions/link" }, { "type": "null" } ] }, "next": { "description": "The next page of data", "oneOf": [ - { "$ref": "#/definitions/linkage" }, + { "$ref": "#/definitions/link" }, { "type": "null" } ] } 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