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

Support checked exceptions that can be defined in responses #116

Open
jsenko opened this issue Mar 9, 2023 · 0 comments
Open

Support checked exceptions that can be defined in responses #116

jsenko opened this issue Mar 9, 2023 · 0 comments

Comments

@jsenko
Copy link
Member

jsenko commented Mar 9, 2023

Example:

 "paths": {
    "/api/serviceregistry_mgmt/v1/registries": {
      "description": "Manage the list of all Registry instances",
      "post": {
        "operationId": "createRegistry",
        "responses": {
          "409": {
            "x-checked-exceptions": [
              "org.bf2.srs.fleetmanager.common.storage.RegistryStorageConflictException",
              "org.bf2.srs.fleetmanager.spi.ams.ResourceLimitReachedException",
              "org.bf2.srs.fleetmanager.spi.ams.TermsRequiredException",
              "org.bf2.srs.fleetmanager.common.storage.RegistryStorageConflictException",
              (...)
            ]
          },
          "500": {
            "x-checked-exceptions": [
              "org.bf2.srs.fleetmanager.spi.ams.AccountManagementServiceException"            
            ]
          }
        }
      }
  }

It could possibly generate an exception mapper as well, if configured.

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