this string has no description
0
BookshelfTemplate.pkl
1module BookshelfTemplate
2
3import "pkl:json"
4
5typealias Author = String | Listing<String>
6typealias Format = "Hardcover" | "Paperback"
7typealias Categories = Listing<String>
8
9class Book {
10 isbn: String
11 title: String
12 author: Author
13 afterword: String?
14 publisher: String
15 published: UInt16
16 subTitle: String?
17 imprint: String?
18 series: String?
19 seriesNumber: UInt8?
20 subSeries: String?
21 subSeriesNumber: UInt8?
22 yearReadOn: UInt16?
23 pages: UInt16?
24 edition: String?
25 format: Format?
26 categories: Categories?
27 genre: String?
28}
29
30books: Listing<Book>
31
32output {
33 renderer = new JsonRenderer {
34 omitNullProperties = true
35 }
36}