Skip to content

Commit

Permalink
Update to change RequiresSpace to RequiresSpaceHeader
Browse files Browse the repository at this point in the history
  • Loading branch information
JackLewis-digirati committed Jan 10, 2025
1 parent 771a372 commit 9abc41d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public async Task CreateManifest_BadRequest_WhenNoSpaceHeader()
response.StatusCode.Should().Be(HttpStatusCode.BadRequest);
var error = await response.ReadAsPresentationResponseAsync<Error>();
error!.Detail.Should().Be("A request with assets requires the space header to be set");
error.ErrorTypeUri.Should().Be("http://localhost/errors/ModifyCollectionType/RequiresSpace");
error.ErrorTypeUri.Should().Be("http://localhost/errors/ModifyCollectionType/RequiresSpaceHeader");
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public static ModifyEntityResult<T, ModifyCollectionType> ErrorCreatingSpace<T>(
public static ModifyEntityResult<T, ModifyCollectionType> SpaceRequired<T>()
where T : class
=> ModifyEntityResult<T, ModifyCollectionType>.Failure(
"A request with assets requires the space header to be set", ModifyCollectionType.RequiresSpace,
"A request with assets requires the space header to be set", ModifyCollectionType.RequiresSpaceHeader,
WriteResult.BadRequest);

public static ModifyEntityResult<T, ModifyCollectionType> CouldNotRetrieveAssetId<T>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public enum ModifyCollectionType
ParentMustBeStorageCollection = 9,
CannotChangeCollectionType = 10,
ErrorCreatingSpace = 11,
RequiresSpace = 12,
RequiresSpaceHeader = 12,
CouldNotRetrieveAssetId = 13,
DlcsException = 14,
ValidationFailed = 15,
Expand Down

0 comments on commit 9abc41d

Please sign in to comment.