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