Closed JohnGalt1717 closed 6 months ago
Thanks for the issue!
Imports are fixed now as per 1.11.1
But the nested Map\List definition problem will take major rewrite of UniversalType. We are definitely looking into fixing this issue but it will take some time.
Thanks! I would have done a pull request but I couldn't figure out where it's happening (which makes sense based on what you said)
As of planned 1.16.0 all collections are now resolved the same way as lists before. On branch feature/wrapping-collections map resolving is now working correctly and generates result as desired in this issue
As of now we need more test cases to cover this refactor and confirming that it doesnt break previous map and list behaviour
Consider the following which follows the spec here: https://swagger.io/docs/specification/data-models/dictionaries/
Results in this:
This does 2 things incorrectly:
First is it imports a new file that doesn't get created (correctly not created)
import 'errors.dart';
And second it almost gets the definition for the field correct but not quite:
final Map<String, Object?>? errors;
should be:
final Map<String, List<String?>? errors;