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

Generated ``` // coverage:ignore-file // GENERATED CODE - DO NOT MODIFY BY HAND // ignore_for_file: type=lint, unused_import, invalid_annotation_target import 'package:freezed_annotation/freezed_annotation.dart'; part 'model_c.freezed.dart'; part 'model_c.g.dart'; @Freezed() class ModelC with _$ModelC {...

bug

### Steps to reproduce I have a swagger schema like this: ```json ... "coverImage": { "allOf": [ { "$ref": "#/components/schemas/DisplayImage" }, { "nullable": true } ] } ... ``` ###...

### Steps to reproduce Try generating the code with the provided snippet. ### Expected results It's expected that the types will be merged into new types with autogenerated names possibly....

### Use case When generating Kotlin classes into a specific directory in my project, the `package` declaration should be present in all generated clients and models with the correct package....

### Use case I'd like to consume endpoint that generates .pdf file. This is OpenAPI schema for such endpoint: ``` "/api/transfers/export.pdf": { "get": { "operationId": "exportPdf", "summary": "", "parameters": [...

### Use case By default all the models are generated without `includeIfNull` value. ### Solutions considered I haven't found any existing configuration for it. Json also doesn't seems to be...

### Steps to reproduce Use the provided snippet to generate something ### Expected results The generator can use the `components.responses` part which are referenced in `paths`. ### Actual results The...

### Steps to reproduce 1. define `json_serializer: freezed` in swagger_parser 2. define two schemas without `json_serializer` 3. run `dart run swagger_parser` ### Expected results for both schemas should be generated...

### Steps to reproduce When an entity contains `oneOf` I have found https://github.com/Carapacik/swagger_parser/issues/5, but this issue seems to have not been resolved subsequently.My expectation is similar to https://github.com/Carapacik/swagger_parser/issues/5#issuecomment-1344471034. ### Expected...