diff --git a/packages/nextcloud/lib/src/api/notes.openapi.dart b/packages/nextcloud/lib/src/api/notes.openapi.dart index 2945461a..35f81995 100644 --- a/packages/nextcloud/lib/src/api/notes.openapi.dart +++ b/packages/nextcloud/lib/src/api/notes.openapi.dart @@ -219,7 +219,7 @@ class NotesClient extends DynamiteClient { final int? modified, final String? title, final String? category, - final int favorite = 0, + final int? favorite, final String? ifMatch, }) async { var path = '/index.php/apps/notes/api/v1/notes/{id}'; @@ -248,7 +248,7 @@ class NotesClient extends DynamiteClient { if (category != null) { queryParameters['category'] = category; } - if (favorite != 0) { + if (favorite != null) { queryParameters['favorite'] = favorite.toString(); } if (ifMatch != null) { diff --git a/packages/nextcloud/lib/src/api/notes.openapi.json b/packages/nextcloud/lib/src/api/notes.openapi.json index 29a5ab26..43f5e92c 100644 --- a/packages/nextcloud/lib/src/api/notes.openapi.json +++ b/packages/nextcloud/lib/src/api/notes.openapi.json @@ -396,8 +396,7 @@ "in": "query", "required": false, "schema": { - "type": "integer", - "default": 0 + "type": "integer" } }, {