mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-02 19:05:32 -04:00
Fix schema for the parents
field
This commit is contained in:
parent
293fb84e1d
commit
e9b1bccbc9
@ -44,10 +44,13 @@ struct APIRouter
|
|||||||
desc: "An entry in a book"
|
desc: "An entry in a book"
|
||||||
|
|
||||||
Koa.schema "title", {
|
Koa.schema "title", {
|
||||||
"mtime" => Int64,
|
"mtime" => Int64,
|
||||||
"entries" => ["entry"],
|
"entries" => ["entry"],
|
||||||
"titles" => ["title"],
|
"titles" => ["title"],
|
||||||
"parents" => [String],
|
"parents" => [{
|
||||||
|
"title" => String,
|
||||||
|
"id" => String,
|
||||||
|
}],
|
||||||
"title_percentages" => [Float64?],
|
"title_percentages" => [Float64?],
|
||||||
"entry_percentages" => [Float64?],
|
"entry_percentages" => [Float64?],
|
||||||
}.merge(s %w(dir title id display_name cover_url)),
|
}.merge(s %w(dir title id display_name cover_url)),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user