File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
src/JsonApiDotNetCore/Middleware
test/JsonApiDotNetCoreTests/IntegrationTests/ContentNegotiation Expand file tree Collapse file tree 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
1414 public const string AtomicOperationsMediaType = $ "{ MediaType } ; ext=\" https://jsonapi.org/ext/atomic\" ";
1515
1616 [ 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";
1818}
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public sealed class JsonApiMediaType : IEquatable<JsonApiMediaType>
2525 public static readonly JsonApiMediaType AtomicOperations = new ( [ JsonApiMediaTypeExtension . AtomicOperations ] ) ;
2626
2727 /// <summary>
28- /// Gets the JSON:API media type with the "atomic-operations " extension.
28+ /// Gets the JSON:API media type with the "atomic" extension.
2929 /// </summary>
3030 public static readonly JsonApiMediaType RelaxedAtomicOperations = new ( [ JsonApiMediaTypeExtension . RelaxedAtomicOperations ] ) ;
3131
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ namespace JsonApiDotNetCore.Middleware;
99public sealed class JsonApiMediaTypeExtension : IEquatable < JsonApiMediaTypeExtension >
1010{
1111 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" ) ;
1313
1414 public string UnescapedValue { get ; }
1515
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
121121 headers . Accept . Add ( MediaTypeWithQualityHeaderValue . Parse ( $ "{ JsonApiMediaType . Default } ; profile=some") ) ;
122122 headers . Accept . Add ( MediaTypeWithQualityHeaderValue . Parse ( JsonApiMediaType . Default . ToString ( ) ) ) ;
123123 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") ) ;
125125 headers . Accept . Add ( MediaTypeWithQualityHeaderValue . Parse ( $ "{ JsonApiMediaType . Default } ;EXT=\" https://jsonapi.org/ext/atomic\" ; q=0.2") ) ;
126126 } ;
127127
@@ -168,7 +168,7 @@ public async Task Prefers_JsonApi_with_relaxed_AtomicOperations_extension_in_Acc
168168 headers . Accept . Add ( MediaTypeWithQualityHeaderValue . Parse ( JsonApiMediaType . Default . ToString ( ) ) ) ;
169169 headers . Accept . Add ( MediaTypeWithQualityHeaderValue . Parse ( $ "{ JsonApiMediaType . Default } ; unknown=unexpected") ) ;
170170 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") ) ;
172172 } ;
173173
174174 // Act
You can’t perform that action at this time.
0 commit comments