File tree 4 files changed +5
-5
lines changed
src/JsonApiDotNetCore/Middleware
test/JsonApiDotNetCoreTests/IntegrationTests/ContentNegotiation
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -14,5 +14,5 @@ public static class HeaderConstants
14
14
public const string AtomicOperationsMediaType = $ "{ MediaType } ; ext=\" https://jsonapi.org/ext/atomic\" ";
15
15
16
16
[ Obsolete ( $ "Use { nameof ( JsonApiMediaType ) } .{ nameof ( JsonApiMediaType . RelaxedAtomicOperations ) } .ToString() instead.") ]
17
- public const string RelaxedAtomicOperationsMediaType = $ "{ MediaType } ; ext=atomic-operations ";
17
+ public const string RelaxedAtomicOperationsMediaType = $ "{ MediaType } ; ext=atomic";
18
18
}
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public sealed class JsonApiMediaType : IEquatable<JsonApiMediaType>
25
25
public static readonly JsonApiMediaType AtomicOperations = new ( [ JsonApiMediaTypeExtension . AtomicOperations ] ) ;
26
26
27
27
/// <summary>
28
- /// Gets the JSON:API media type with the "atomic-operations " extension.
28
+ /// Gets the JSON:API media type with the "atomic" extension.
29
29
/// </summary>
30
30
public static readonly JsonApiMediaType RelaxedAtomicOperations = new ( [ JsonApiMediaTypeExtension . RelaxedAtomicOperations ] ) ;
31
31
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ namespace JsonApiDotNetCore.Middleware;
9
9
public sealed class JsonApiMediaTypeExtension : IEquatable < JsonApiMediaTypeExtension >
10
10
{
11
11
public static readonly JsonApiMediaTypeExtension AtomicOperations = new ( "https://jsonapi.org/ext/atomic" ) ;
12
- public static readonly JsonApiMediaTypeExtension RelaxedAtomicOperations = new ( "atomic-operations " ) ;
12
+ public static readonly JsonApiMediaTypeExtension RelaxedAtomicOperations = new ( "atomic" ) ;
13
13
14
14
public string UnescapedValue { get ; }
15
15
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ public async Task Prefers_JsonApi_with_AtomicOperations_extension_in_Accept_head
121
121
headers . Accept . Add ( MediaTypeWithQualityHeaderValue . Parse ( $ "{ JsonApiMediaType . Default } ; profile=some") ) ;
122
122
headers . Accept . Add ( MediaTypeWithQualityHeaderValue . Parse ( JsonApiMediaType . Default . ToString ( ) ) ) ;
123
123
headers . Accept . Add ( MediaTypeWithQualityHeaderValue . Parse ( $ "{ JsonApiMediaType . Default } ; unknown=unexpected") ) ;
124
- headers . Accept . Add ( MediaTypeWithQualityHeaderValue . Parse ( $ "{ JsonApiMediaType . Default } ;EXT=atomic-operations ; q=0.8") ) ;
124
+ headers . Accept . Add ( MediaTypeWithQualityHeaderValue . Parse ( $ "{ JsonApiMediaType . Default } ;EXT=atomic; q=0.8") ) ;
125
125
headers . Accept . Add ( MediaTypeWithQualityHeaderValue . Parse ( $ "{ JsonApiMediaType . Default } ;EXT=\" https://jsonapi.org/ext/atomic\" ; q=0.2") ) ;
126
126
} ;
127
127
@@ -168,7 +168,7 @@ public async Task Prefers_JsonApi_with_relaxed_AtomicOperations_extension_in_Acc
168
168
headers . Accept . Add ( MediaTypeWithQualityHeaderValue . Parse ( JsonApiMediaType . Default . ToString ( ) ) ) ;
169
169
headers . Accept . Add ( MediaTypeWithQualityHeaderValue . Parse ( $ "{ JsonApiMediaType . Default } ; unknown=unexpected") ) ;
170
170
headers . Accept . Add ( MediaTypeWithQualityHeaderValue . Parse ( $ "{ JsonApiMediaType . Default } ;EXT=\" https://jsonapi.org/ext/atomic\" ; q=0.8") ) ;
171
- headers . Accept . Add ( MediaTypeWithQualityHeaderValue . Parse ( $ "{ JsonApiMediaType . Default } ;EXT=atomic-operations ; q=0.2") ) ;
171
+ headers . Accept . Add ( MediaTypeWithQualityHeaderValue . Parse ( $ "{ JsonApiMediaType . Default } ;EXT=atomic; q=0.2") ) ;
172
172
} ;
173
173
174
174
// Act
You can’t perform that action at this time.
0 commit comments