forked from loafle/openapi-generator-original
* fix: query params may be ints as well don't assume query params are Strings or List<String>s * fix dart: use correct type for QueryParams type is Iterable, not List only check params for != null if they haven't been checked already add some casts to make strong mode happy update petstore * feat dart: enable strong mode * feat dart: generate both browser and vm library move petstore client into subdirectory and reference generated libraries using path in pubspec.yaml * feat dart: refactor petstore test. The new layout resembles a real project. petstore test is now strong mode compatible. * feat: add DateTimerParser transformer * feat: improved exception reporting * feat[dart]: handle patch requests * fix[dart]: typo * fix dart: remove findPetsByTag test; enable strong-mode find pets by tag call is deprecated and returns 500 generated library is now strong mode compatible
33 lines
750 B
Dart
33 lines
750 B
Dart
library swagger.api;
|
|
|
|
import 'dart:async';
|
|
import 'dart:convert';
|
|
import 'package:http/browser_client.dart';
|
|
import 'package:http/http.dart';
|
|
import 'package:dartson/dartson.dart';
|
|
import 'package:dartson/transformers/date_time.dart';
|
|
import 'package:intl/intl.dart';
|
|
|
|
part 'api_client.dart';
|
|
part 'api_helper.dart';
|
|
part 'api_exception.dart';
|
|
part 'auth/authentication.dart';
|
|
part 'auth/api_key_auth.dart';
|
|
part 'auth/oauth.dart';
|
|
part 'auth/http_basic_auth.dart';
|
|
|
|
part 'api/pet_api.dart';
|
|
part 'api/store_api.dart';
|
|
part 'api/user_api.dart';
|
|
|
|
part 'model/api_response.dart';
|
|
part 'model/category.dart';
|
|
part 'model/order.dart';
|
|
part 'model/pet.dart';
|
|
part 'model/tag.dart';
|
|
part 'model/user.dart';
|
|
|
|
|
|
ApiClient defaultApiClient = new ApiClient();
|
|
|