fix(server): correctly identify integers

This commit is contained in:
Jason Rasmussen 2025-09-10 22:27:55 -04:00
parent 2d2673c114
commit b0291b6ad6
No known key found for this signature in database
GPG key ID: 75AD31BF84C94773
27 changed files with 152 additions and 135 deletions

View file

@ -75,8 +75,8 @@ class DeprecatedApi {
///
/// Parameters:
///
/// * [num] count:
Future<Response> getRandomWithHttpInfo({ num? count, }) async {
/// * [int] count:
Future<Response> getRandomWithHttpInfo({ int? count, }) async {
// ignore: prefer_const_declarations
final apiPath = r'/assets/random';
@ -109,8 +109,8 @@ class DeprecatedApi {
///
/// Parameters:
///
/// * [num] count:
Future<List<AssetResponseDto>?> getRandom({ num? count, }) async {
/// * [int] count:
Future<List<AssetResponseDto>?> getRandom({ int? count, }) async {
final response = await getRandomWithHttpInfo( count: count, );
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));