From 2afc7dd95338067e0d5ffc31dd0710d70d82dcc0 Mon Sep 17 00:00:00 2001 From: Pavel Bodiachevskii Date: Mon, 24 Jun 2024 18:42:22 +0400 Subject: [PATCH] feat: application/yaml MediaType --- jaxrs-api/src/main/java/jakarta/ws/rs/core/MediaType.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/jaxrs-api/src/main/java/jakarta/ws/rs/core/MediaType.java b/jaxrs-api/src/main/java/jakarta/ws/rs/core/MediaType.java index fc906fb6..42d5069d 100644 --- a/jaxrs-api/src/main/java/jakarta/ws/rs/core/MediaType.java +++ b/jaxrs-api/src/main/java/jakarta/ws/rs/core/MediaType.java @@ -100,6 +100,14 @@ public class MediaType { * A {@link MediaType} constant representing {@value #APPLICATION_JSON} media type. */ public static final MediaType APPLICATION_JSON_TYPE = new MediaType("application", "json"); + /** + * A {@code String} constant representing {@value #APPLICATION_YAML} media type. + */ + public static final String APPLICATION_YAML = "application/yaml"; + /** + * A {@link MediaType} constant representing {@value #APPLICATION_YAML} media type. + */ + public static final MediaType APPLICATION_YAML_TYPE = new MediaType("application", "yaml"); /** * A {@code String} constant representing {@value #APPLICATION_FORM_URLENCODED} media type. */