Browse Source

dynamite: Fix request and response object names

pull/164/head
jld3103 2 years ago
parent
commit
e42ea0d983
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 7
      packages/dynamite/lib/src/openapi_builder.dart

7
packages/dynamite/lib/src/openapi_builder.dart

@ -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) {

Loading…
Cancel
Save