|
|
|
@ -649,7 +649,7 @@ class OpenAPIBuilder implements Builder {
|
|
|
|
|
final result = resolveType( |
|
|
|
|
spec, |
|
|
|
|
state, |
|
|
|
|
_toDartName(methodName, uppercaseFirstCharacter: true), |
|
|
|
|
_toDartName('$methodName-request-$mimeType', uppercaseFirstCharacter: true), |
|
|
|
|
mediaType.schema!, |
|
|
|
|
); |
|
|
|
|
switch (mimeType) { |
|
|
|
@ -761,7 +761,10 @@ class OpenAPIBuilder implements Builder {
|
|
|
|
|
final result = resolveType( |
|
|
|
|
spec, |
|
|
|
|
state, |
|
|
|
|
_toDartName(methodName, uppercaseFirstCharacter: true), |
|
|
|
|
_toDartName( |
|
|
|
|
'$methodName-response-$statusCode-$mimeType', |
|
|
|
|
uppercaseFirstCharacter: true, |
|
|
|
|
), |
|
|
|
|
mediaType.schema!, |
|
|
|
|
); |
|
|
|
|
switch (mimeType) { |
|
|
|
|