From 6b3bed98aba8c58df7f68a51dcdd8e8f372b0c6f Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Wed, 26 May 2021 23:46:04 +0200 Subject: ol: string, null or struct --- skate/schema.go | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to 'skate') diff --git a/skate/schema.go b/skate/schema.go index 92a66f0..d885728 100644 --- a/skate/schema.go +++ b/skate/schema.go @@ -492,10 +492,27 @@ type OpenLibraryEdition struct { LatestRevision int64 `json:"latest_revision"` LcClassifications []string `json:"lc_classifications"` Lccn []string `json:"lccn"` - Notes struct { - Type string `json:"type"` - Value string `json:"value"` - } `json:"notes"` + + // null + // { + // "type": "/type/text", + // "value": "Includes index." + // } + // null + // { + // "type": "/type/text", + // "value": "Includes bibliographical references (p. 137-143)." + // } + // null + // "Includes bibliographical references (p. 203-205) and index." + // null + // null + Notes interface{} `json:"notes"` + // Notes struct { + // Type string `json:"type"` + // Value string `json:"value"` + // } `json:"notes"` + NumberOfPages int64 `json:"number_of_pages"` Ocaid string `json:"ocaid"` Pagination string `json:"pagination"` -- cgit v1.2.3