Skip to content

Commit e50c16d

Browse files
Pakisanmkarg
authored andcommitted
feat: application/yaml MediaType
1 parent 97d52dc commit e50c16d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

jaxrs-api/src/main/java/jakarta/ws/rs/core/MediaType.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,14 @@ public class MediaType {
100100
* A {@link MediaType} constant representing {@value #APPLICATION_JSON} media type.
101101
*/
102102
public static final MediaType APPLICATION_JSON_TYPE = new MediaType("application", "json");
103+
/**
104+
* A {@code String} constant representing {@value #APPLICATION_YAML} media type.
105+
*/
106+
public static final String APPLICATION_YAML = "application/yaml";
107+
/**
108+
* A {@link MediaType} constant representing {@value #APPLICATION_YAML} media type.
109+
*/
110+
public static final MediaType APPLICATION_YAML_TYPE = new MediaType("application", "yaml");
103111
/**
104112
* A {@code String} constant representing {@value #APPLICATION_FORM_URLENCODED} media type.
105113
*/

0 commit comments

Comments
 (0)