Migrate NPC registry durable contract
This commit is contained in:
@@ -256,7 +256,7 @@ func referenceSlots() []contracts.ReferenceSlot {
|
||||
Description: "Required normalized NPC registry used only to canonicalize enemy-subject names, never as event evidence.",
|
||||
Required: true,
|
||||
AcceptedMediaTypes: []string{"application/json"},
|
||||
AcceptedArtifactKinds: []contracts.ArtifactKind{dnd.NPCListKind},
|
||||
AcceptedArtifactKinds: []contracts.ArtifactKind{dnd.NPCRegistryKind},
|
||||
MaxBytes: NPCRegistryMaxBytes,
|
||||
}})
|
||||
}
|
||||
|
||||
@@ -183,7 +183,7 @@ func testDocument() *source.SourceDocument {
|
||||
|
||||
func npcReferences(t *testing.T) contracts.ReferenceSet {
|
||||
t.Helper()
|
||||
value := dnd.NPCList{NPCs: []dnd.NPC{{
|
||||
value := dnd.NPCRegistry{NPCs: []dnd.NPC{{
|
||||
ID: identity.DeriveID("Ária"), Name: "Ária",
|
||||
SourceRefs: []source.SourceRef{{SourceID: "registry", StartUnitID: 1, EndUnitID: 1}},
|
||||
}}}
|
||||
|
||||
Reference in New Issue
Block a user