From 5ae4fb8b81fb7e688e4b83da5e48e7d4d4089e89 Mon Sep 17 00:00:00 2001 From: Jonathan Jogenfors Date: Sat, 16 Mar 2024 00:38:36 +0100 Subject: [PATCH] open-api --- mobile/openapi/doc/ValidateLibraryImportPathResponseDto.md | 2 +- .../lib/model/validate_library_import_path_response_dto.dart | 3 ++- open-api/typescript-sdk/src/fetch-client.ts | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/mobile/openapi/doc/ValidateLibraryImportPathResponseDto.md b/mobile/openapi/doc/ValidateLibraryImportPathResponseDto.md index 4601d8d2f..1ebcb04ef 100644 --- a/mobile/openapi/doc/ValidateLibraryImportPathResponseDto.md +++ b/mobile/openapi/doc/ValidateLibraryImportPathResponseDto.md @@ -9,7 +9,7 @@ import 'package:openapi/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **importPath** | **String** | | -**isValid** | **bool** | | [optional] [default to false] +**isValid** | **bool** | | [default to false] **message** | **String** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/mobile/openapi/lib/model/validate_library_import_path_response_dto.dart b/mobile/openapi/lib/model/validate_library_import_path_response_dto.dart index 1297c824c..142055f2c 100644 --- a/mobile/openapi/lib/model/validate_library_import_path_response_dto.dart +++ b/mobile/openapi/lib/model/validate_library_import_path_response_dto.dart @@ -67,7 +67,7 @@ class ValidateLibraryImportPathResponseDto { return ValidateLibraryImportPathResponseDto( importPath: mapValueOfType(json, r'importPath')!, - isValid: mapValueOfType(json, r'isValid') ?? false, + isValid: mapValueOfType(json, r'isValid')!, message: mapValueOfType(json, r'message'), ); } @@ -117,6 +117,7 @@ class ValidateLibraryImportPathResponseDto { /// The list of required keys that must be present in a JSON. static const requiredKeys = { 'importPath', + 'isValid', }; } diff --git a/open-api/typescript-sdk/src/fetch-client.ts b/open-api/typescript-sdk/src/fetch-client.ts index de9896c34..2a2fbab66 100644 --- a/open-api/typescript-sdk/src/fetch-client.ts +++ b/open-api/typescript-sdk/src/fetch-client.ts @@ -492,7 +492,7 @@ export type ValidateLibraryDto = { }; export type ValidateLibraryImportPathResponseDto = { importPath: string; - isValid?: boolean; + isValid: boolean; message?: string; }; export type ValidateLibraryResponseDto = {