lib/mangadex/chapter.rb in mangadex-5.7.5.2 vs lib/mangadex/chapter.rb in mangadex-5.7.5.3
- old
+ new
@@ -34,11 +34,11 @@
Mangadex::Internal::Definition.must(id)
Mangadex::Internal::Request.get(
'/chapter/%{id}' % {id: id},
Mangadex::Internal::Definition.validate(args, {
- includes: { accepts: [String] },
+ includes: { accepts: [String], converts: :to_a },
}),
)
end
sig { params(id: String, args: T::Api::Arguments).returns(Mangadex::Api::Response[Chapter]) }
@@ -50,10 +50,10 @@
payload: Mangadex::Internal::Definition.validate(args, {
title: { accepts: String },
volume: { accepts: String },
chapter: { accepts: String },
translated_language: { accepts: %r{^[a-zA-Z\-]{2,5}$} },
- groups: { accepts: [String] },
+ groups: { accepts: [String], converts: :to_a },
version: { accepts: Integer, required: true },
}),
)
end