Skip to content

Commit

Permalink
fix(impl): [#199] Fix OpenAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
dsmf committed Mar 27, 2024
1 parent f17feda commit df32eb2
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,15 @@ public class PolicyStoreController {
security = @SecurityRequirement(name = "api_key"), tags = { "Item Relationship Service" },
description = "Register a policy that should be accepted in EDC negotiation.")
@ApiResponses(value = { @ApiResponse(responseCode = "201"),
@ApiResponse(responseCode = "400", description = "Policy registration failed.",
@ApiResponse(responseCode = "500",
description = "Policy registration failed due to an internal error.",
content = { @Content(mediaType = APPLICATION_JSON_VALUE,
schema = @Schema(implementation = ErrorResponse.class),
examples = @ExampleObject(name = "error",
ref = "#/components/examples/error-response-500"))
}),
@ApiResponse(responseCode = "400",
description = "Policy registration failed due to an invalid request.",
content = { @Content(mediaType = APPLICATION_JSON_VALUE,
schema = @Schema(implementation = ErrorResponse.class),
examples = @ExampleObject(name = "error",
Expand Down

0 comments on commit df32eb2

Please sign in to comment.