Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: response vs responses #125

Open
do-not-do-that opened this issue Aug 17, 2023 · 0 comments
Open

Feature Request: response vs responses #125

do-not-do-that opened this issue Aug 17, 2023 · 0 comments

Comments

@do-not-do-that
Copy link

serverless version : 3.0.0
serverless-auto-swagger version : 2.12.0

I expected to be able to clearly use the parameters already configured by serverless through the issues below.
Other things seem to be fine, but the response creates an issue.

#21

  • serverless http response
response?: {
  contentHandling?: "CONVERT_TO_BINARY" | "CONVERT_TO_TEXT";
  headers?: {
    [k: string]: string;
  };
  template?: string;
  statusCodes?: {
    [k: string]: {
      headers?: {
        [k: string]: string;
      };
      pattern?: string;
      template?:
        | string
        | {
            [k: string]: string;
          };
    };
  };
};
  • serverless-auto-swagger response
responses: {
  200: {
    description: "test",
  },
},

I don't want to ruin my type system. (I need to change the type to any to use swagger) Can you change the response to response similar to the parameters supported by serverless, and format it?

If the formatting is correct, I will be less confused when defining parameters in one place and writing code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant