swagger_parser icon indicating copy to clipboard operation
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.

Results 22 swagger_parser issues
Sort by recently updated
recently updated
newest added

### Use case This is how the method with body now (named parameter) is generated: ![image](https://github.com/Carapacik/swagger_parser/assets/34741787/dc983713-9d26-408e-b616-1020eeebfba1) This is how it can be generated (positional parameter): ![image](https://github.com/Carapacik/swagger_parser/assets/34741787/cee1fc50-bc07-43fd-9907-c815ecb612d9) ### Proposal We can...

future plans

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:...

bug
enhancement
future plans

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)....

enhancement
future plans

```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; ```...

bug
enhancement

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...

enhancement

https://github.com/trevorwang/retrofit.dart/issues/663