chore(app): сгенерированный Dart-клиент из OpenAPI
openapi-generator-cli -g dart-dio. Генерируется, но коммитится: CI ловит дрейф openapi/openapi.json, а приложение собирается без запуска генератора. Пересобирается через just gen-client после любого изменения роутов.
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
import 'package:test/test.dart';
|
||||
import 'package:fintracker_api/fintracker_api.dart';
|
||||
|
||||
|
||||
/// tests for AccountsApi
|
||||
void main() {
|
||||
final instance = FintrackerApi().getAccountsApi();
|
||||
|
||||
group(AccountsApi, () {
|
||||
// List
|
||||
//
|
||||
// Every account, archived ones included — the client decides what to show.
|
||||
//
|
||||
//Future<List<AccountOut>> accountsList() async
|
||||
test('test accountsList', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// Patch
|
||||
//
|
||||
// Update the user-owned fields. Everything else is overwritten by the next sync.
|
||||
//
|
||||
//Future<AccountOut> accountsPatch(int accountId, AccountPatch accountPatch) async
|
||||
test('test accountsPatch', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user