tazatechnology / openapi_spec

Dart based OpenAPI specification generator and parser
BSD 3-Clause "New" or "Revised" License
8 stars 5 forks source link

Ignore unused import warning in generated files #37

Closed davidmigloz closed 10 months ago

davidmigloz commented 10 months ago

pub.dev was complaining that import 'dart:typed_data'; was not used in client.dart. I guess that import is still required in some cases, so I've just ignored that warning.

cc @walsha2

walsha2 commented 10 months ago

@davidmigloz Closing in favor of #39 - I would prefer to know there is an unused import on a case by case basis. Also, certain specs generate a ton of schemas. I would hate for this unnecessary ignore to be added to all the schema files. #39 scopes this change to only the client, which is a single file.

davidmigloz commented 10 months ago

Thanks a better approach indeed. Thanks!