fix(media-type): fix proxy media-type and openapi patch endpoint (#10763)

This commit is contained in:
david-leifker 2024-06-22 09:10:11 -05:00 committed by GitHub
parent 79ba0b1720
commit 79ad58268e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -155,7 +155,7 @@ public class Application extends Controller {
.setBody(
new InMemoryBodyWritable(
ByteString.fromByteBuffer(request.body().asBytes().asByteBuffer()),
"application/json"))
request.contentType().orElse("application/json")))
.setRequestTimeout(Duration.ofSeconds(120))
.execute()
.thenApply(

View File

@ -490,7 +490,7 @@ public abstract class GenericEntitiesController<
@Tag(name = "Generic Aspects")
@PatchMapping(
value = "/{entityName}/{entityUrn:urn:li:.+}/{aspectName}",
consumes = "application/json-patch+json",
consumes = {"application/json-patch+json", MediaType.APPLICATION_JSON_VALUE},
produces = MediaType.APPLICATION_JSON_VALUE)
@Operation(summary = "Patch an entity aspect. (Experimental)")
public ResponseEntity<E> patchAspect(