swagger_parser
swagger_parser copied to clipboard
Dart package that takes an OpenApi definition file and generates REST clients based on retrofit and data classes for your project.
### Use case This is how the method with body now (named parameter) is generated:  This is how it can be generated (positional parameter):  ### Proposal We can...
In OpenAPI 3.1.0 there is a new method of enumerating things that allows us to have proper names for enumerations. Here is an example of that. ``` properties: LogLevel: type:...
Hi, I have this environment with multiple json files that have parts of models (for example, various enumerations in one file, and the usage of those enumeration in another file)....
```dart // coverage:ignore-file // GENERATED CODE - DO NOT MODIFY BY HAND // ignore_for_file: type=lint, unused_import import 'package:dio/dio.dart'; import 'package:retrofit/retrofit.dart'; import '../models/options.dart'; part 'client_client.g.dart'; @RestApi() abstract class ClientClient { factory...
### Steps to reproduce 1. Use the provided schema file and run the swagger_parser cli command. 2. Examine the output :) ### Expected results ``` dart final String? fieldName; ```...
This should bring enum functionality up to all best practices: If the spec has oneOf with const and title, it will use title automatically to name the enum. Will handle...
### Steps to reproduce Hey, again @Carapacik, thanks for a great package! I have a question related to the `"anyOf"` declaration in the JSON schemas, looks like the parent class...
### Use case If you have a generic return type, right now it creates new types instead of creating a dart generic type. It would be nice to have generics...
The current `toIso8601String()` returns the time without the offset which causes problems when the backend requires it and cuts the information about the time offset when converting, for example, to...
https://github.com/trevorwang/retrofit.dart/issues/663