@@ -98,16 +98,34 @@ public class MediaType extends MimeType implements Serializable {
98
98
/**
99
99
* Public constant media type for {@code application/graphql+json}.
100
100
* @since 5.3.19
101
- * @see <a href="https://github.com/graphql/graphql-over-http">GraphQL over HTTP spec</a>
101
+ * @see <a href="https://github.com/graphql/graphql-over-http/pull/215">GraphQL over HTTP spec change</a>
102
+ * @deprecated as of 6.0.3, in favor of {@link MediaType#APPLICATION_GRAPHQL_RESPONSE}
102
103
*/
104
+ @ Deprecated (since = "6.0.3" , forRemoval = true )
103
105
public static final MediaType APPLICATION_GRAPHQL ;
104
106
105
107
/**
106
108
* A String equivalent of {@link MediaType#APPLICATION_GRAPHQL}.
107
109
* @since 5.3.19
110
+ * @deprecated as of 6.0.3, in favor of {@link MediaType#APPLICATION_GRAPHQL_RESPONSE_VALUE}
108
111
*/
112
+ @ Deprecated (since = "6.0.3" , forRemoval = true )
109
113
public static final String APPLICATION_GRAPHQL_VALUE = "application/graphql+json" ;
110
114
115
+ /**
116
+ * Public constant media type for {@code application/graphql-response+json}.
117
+ * @since 6.0.3
118
+ * @see <a href="https://github.com/graphql/graphql-over-http">GraphQL over HTTP spec</a>
119
+ */
120
+ public static final MediaType APPLICATION_GRAPHQL_RESPONSE ;
121
+
122
+ /**
123
+ * A String equivalent of {@link MediaType#APPLICATION_GRAPHQL_RESPONSE}.
124
+ * @since 6.0.3
125
+ */
126
+ public static final String APPLICATION_GRAPHQL_RESPONSE_VALUE = "application/graphql-response+json" ;
127
+
128
+
111
129
/**
112
130
* Public constant media type for {@code application/json}.
113
131
*/
@@ -422,6 +440,7 @@ public class MediaType extends MimeType implements Serializable {
422
440
APPLICATION_CBOR = new MediaType ("application" , "cbor" );
423
441
APPLICATION_FORM_URLENCODED = new MediaType ("application" , "x-www-form-urlencoded" );
424
442
APPLICATION_GRAPHQL = new MediaType ("application" , "graphql+json" );
443
+ APPLICATION_GRAPHQL_RESPONSE = new MediaType ("application" , "graphql-response+json" );
425
444
APPLICATION_JSON = new MediaType ("application" , "json" );
426
445
APPLICATION_JSON_UTF8 = new MediaType ("application" , "json" , StandardCharsets .UTF_8 );
427
446
APPLICATION_NDJSON = new MediaType ("application" , "x-ndjson" );
0 commit comments