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

response status-code not honored in java #5534

Open
brendon- opened this issue Jan 6, 2025 · 0 comments
Open

response status-code not honored in java #5534

brendon- opened this issue Jan 6, 2025 · 0 comments
Labels
language/java product/server-code-generator For generating boilerplate server code implementations

Comments

@brendon-
Copy link

brendon- commented Jan 6, 2025

Issue Description

      response:
        type:  void # doesn't work
        status-code: 204
  1. there doesn't appear to be a void response allowed: Type void is not defined.
  2. when generating the content with a trivial type to get around the missing void type:
      response:
        type:  SuccessBoolAlwaysTrue
        status-code: 204

it does not generate the appropriate annotations on the controller:

expected:

@ResponseStatus(HttpStatus.NO_CONTENT)

but got none.

@dannysheridan dannysheridan added language/java product/server-code-generator For generating boilerplate server code implementations labels Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
language/java product/server-code-generator For generating boilerplate server code implementations
Development

No branches or pull requests

2 participants