Generating the api code for the tictactoe example from OPENAPI generates broken code:
class Mark {
/// Returns a new [Mark] instance.
Mark({
});
@override
bool operator ==(Object other) => identical(this, other) || other is Mark &&
@override
int get hashCode =>
// ignore: unnecessary_parenthesis
...
}
and
class Winner {
/// Returns a new [Winner] instance.
Winner({
});
@override
bool operator ==(Object other) => identical(this, other) || other is Winner &&
@override
int get hashCode =>
// ignore: unnecessary_parenthesis
...
}
Description of the bug
Generating the api code for the tictactoe example from OPENAPI generates broken code:
and
Steps to reproduce
tictactoe.yaml
:Expected behavior
Non-broken code.
Logs
Screenshots
No response
Platform
Linux
Library version
4.10.0
dart version
3.0.1
Flutter channel
stable
Additional context
using build_runner: ^2.4.4