Skip to content

Commit 0207a50

Browse files
authored
fix: space/index/add uses correct reader (#44)
I tried writing a more sensible test that would actually hit this, but I don't think there's currently a good way to do that. I could force it, but it's not worth the effort—what we really need is to rework `go-ucanto`, and that's not a now project. Until then, this makes the capability work as expected.
1 parent 9c61279 commit 0207a50

File tree

1 file changed

+1
-1
lines changed
  • capabilities/space/index

1 file changed

+1
-1
lines changed

capabilities/space/index/add.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ var AddOkReader = schema.Struct[AddOk](AddOkType(), nil, types.Converters...)
5252
var Add = validator.NewCapability(
5353
AddAbility,
5454
schema.DIDString(),
55-
schema.Struct[AddCaveats](nil, nil, types.Converters...),
55+
AddCaveatsReader,
5656
func(claimed, delegated ucan.Capability[AddCaveats]) failure.Failure {
5757
if fail := equalWith(claimed, delegated); fail != nil {
5858
return fail

0 commit comments

Comments
 (0)