Fix schema for the `parents` field

This commit is contained in:
Alex Ling 2022-03-22 16:08:16 +00:00
parent 293fb84e1d
commit e9b1bccbc9
1 changed files with 7 additions and 4 deletions

View File

@ -44,10 +44,13 @@ struct APIRouter
desc: "An entry in a book"
Koa.schema "title", {
"mtime" => Int64,
"entries" => ["entry"],
"titles" => ["title"],
"parents" => [String],
"mtime" => Int64,
"entries" => ["entry"],
"titles" => ["title"],
"parents" => [{
"title" => String,
"id" => String,
}],
"title_percentages" => [Float64?],
"entry_percentages" => [Float64?],
}.merge(s %w(dir title id display_name cover_url)),