Remove unused policy metadata and helpers
This commit is contained in:
@@ -19,9 +19,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
Key = "dnd/combat-turns"
|
||||
normalizationPolicy = "dnd.combat_turns.normalize.v2"
|
||||
NormalizationPolicy = normalizationPolicy
|
||||
Key = "dnd/combat-turns"
|
||||
|
||||
ReasonCodeActorCanonicalized = "combat_actor_canonicalized"
|
||||
ReasonCodeSourceRefsNormalized = "source_references_normalized"
|
||||
|
||||
@@ -17,9 +17,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
Key = "dnd/enemy-events"
|
||||
normalizationPolicy = "dnd.enemy_events.normalize.v1"
|
||||
NormalizationPolicy = normalizationPolicy
|
||||
Key = "dnd/enemy-events"
|
||||
|
||||
ReasonCodeNameCanonicalized = "enemy_event_name_canonicalized"
|
||||
ReasonCodeSourceRefsNormalized = "source_references_normalized"
|
||||
|
||||
@@ -17,9 +17,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
Key = "dnd/item-occurrences"
|
||||
normalizationPolicy = "dnd.item_occurrences.normalize.v1"
|
||||
NormalizationPolicy = normalizationPolicy
|
||||
Key = "dnd/item-occurrences"
|
||||
|
||||
ReasonCodeNameCanonicalized = "item_occurrence_name_canonicalized"
|
||||
ReasonCodeUnknownItemID = "item_occurrence_unknown_item_id"
|
||||
|
||||
@@ -18,9 +18,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
Key = "dnd/location-occurrences"
|
||||
normalizationPolicy = "dnd.location_occurrences.normalize.v1"
|
||||
NormalizationPolicy = normalizationPolicy
|
||||
Key = "dnd/location-occurrences"
|
||||
|
||||
ReasonCodeNameCanonicalized = "location_occurrence_name_canonicalized"
|
||||
ReasonCodeUnknownLocationID = "location_occurrence_unknown_location_id"
|
||||
|
||||
@@ -17,9 +17,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
Key = "dnd/npc-occurrences"
|
||||
normalizationPolicy = "dnd.npc_occurrences.normalize.v2"
|
||||
NormalizationPolicy = normalizationPolicy
|
||||
Key = "dnd/npc-occurrences"
|
||||
|
||||
ReasonCodeSourceRefsNormalized = "source_references_normalized"
|
||||
ReasonCodeOccurrencesReordered = "npc_occurrences_reordered"
|
||||
|
||||
@@ -17,7 +17,6 @@ import (
|
||||
|
||||
const (
|
||||
Key = "dnd/scene-descriptions"
|
||||
normalizerPolicy = "dnd.scene_descriptions.normalizer.v1"
|
||||
ReasonCodeProseNormalized = "scene_description_prose_normalized"
|
||||
ReasonCodeOrderNormalized = "scene_description_order_normalized"
|
||||
ReasonCodeDuplicateCollapsed = "scene_description_duplicate_collapsed"
|
||||
|
||||
@@ -17,9 +17,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
Key = "dnd/spells"
|
||||
normalizationPolicy = "dnd.spells.normalize.v2"
|
||||
NormalizationPolicy = normalizationPolicy
|
||||
Key = "dnd/spells"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -20,7 +20,6 @@ import (
|
||||
const (
|
||||
Key = "normalize/dnd/combat-turns/invariants"
|
||||
ReasonCode = "invalid_combat_turn_normalization"
|
||||
policy = "dnd.combat_turns.validator.normalized.v2"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -14,7 +14,6 @@ import (
|
||||
const (
|
||||
Key = "extract/dnd/combat-turns/shape"
|
||||
ReasonCode = "invalid_combat_turn_shape"
|
||||
policy = "dnd.combat_turns.validator.shape.v2"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -16,7 +16,6 @@ import (
|
||||
const (
|
||||
Key = "extract/dnd/combat-turns/source_refs"
|
||||
ReasonCode = "invalid_combat_turn_source_refs"
|
||||
policy = "dnd.combat_turns.validator.source_refs.v3"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -15,7 +15,6 @@ import (
|
||||
const (
|
||||
Key = "extract/dnd/combat-turns/source_relatedness"
|
||||
ReasonCode = "combat_turn_not_near_source"
|
||||
policy = "dnd.combat_turns.validator.source_relatedness.v2"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -16,7 +16,6 @@ import (
|
||||
const (
|
||||
Key = "extract/dnd/enemy-events/engagements"
|
||||
ReasonCode = "duplicate_enemy_engagement"
|
||||
policy = "dnd.enemy_events.validator.engagements.v2"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -20,7 +20,6 @@ import (
|
||||
const (
|
||||
Key = "normalize/dnd/enemy-events/invariants"
|
||||
ReasonCode = "invalid_enemy_event_normalization"
|
||||
policy = "dnd.enemy_events.validator.normalized.v1"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -16,7 +16,6 @@ import (
|
||||
const (
|
||||
Key = "extract/dnd/enemy-events/shape"
|
||||
ReasonCode = "invalid_enemy_event_shape"
|
||||
policy = "dnd.enemy_events.validator.shape.v2"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -17,7 +17,6 @@ import (
|
||||
const (
|
||||
Key = "extract/dnd/enemy-events/source_refs"
|
||||
ReasonCode = "invalid_enemy_event_source_refs"
|
||||
policy = "dnd.enemy_events.validator.source_refs.v2"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -16,7 +16,6 @@ import (
|
||||
const (
|
||||
Key = "extract/dnd/enemy-events/source_relatedness"
|
||||
ReasonCode = "enemy_event_not_near_source"
|
||||
policy = "dnd.enemy_events.validator.source_relatedness.v1"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -18,7 +18,6 @@ import (
|
||||
const (
|
||||
Key = "normalize/dnd/item-occurrences/invariants"
|
||||
ReasonCode = "invalid_normalized_item_occurrence_invariants"
|
||||
policy = "dnd.item_occurrences.normalize_invariants.v1"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -16,7 +16,6 @@ import (
|
||||
const (
|
||||
Key = "extract/dnd/item-occurrences/registry"
|
||||
ReasonCode = "invalid_item_occurrence_registry"
|
||||
policy = "dnd.item_occurrences.validator.registry.v2"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -16,7 +16,6 @@ import (
|
||||
const (
|
||||
Key = "extract/dnd/item-occurrences/shape"
|
||||
ReasonCode = "invalid_item_occurrence_shape"
|
||||
policy = "dnd.item_occurrences.shape.v3"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -17,7 +17,6 @@ import (
|
||||
const (
|
||||
Key = "extract/dnd/item-occurrences/source_refs"
|
||||
ReasonCode = "invalid_item_occurrence_source_references"
|
||||
policy = "dnd.item_occurrences.source_refs.v2"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -16,7 +16,6 @@ import (
|
||||
const (
|
||||
Key = "extract/dnd/item-occurrences/source_relatedness"
|
||||
ReasonCode = "item_occurrence_not_near_source"
|
||||
policy = "dnd.item_occurrences.source_relatedness.v1"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -14,10 +14,8 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
Key = "normalize/dnd/item-registry/identity"
|
||||
ReasonCode = "invalid_item_identity"
|
||||
policy = domainidentity.Policy
|
||||
correctionPolicy = "dnd.item_registry.validator.identity.v2"
|
||||
Key = "normalize/dnd/item-registry/identity"
|
||||
ReasonCode = "invalid_item_identity"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -15,7 +15,6 @@ import (
|
||||
const (
|
||||
Key = "extract/dnd/item-registry/shape"
|
||||
ReasonCode = "invalid_item_shape"
|
||||
policy = "dnd.item_registry.validator.shape.v2"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -17,7 +17,6 @@ import (
|
||||
const (
|
||||
Key = "extract/dnd/item-registry/source_refs"
|
||||
ReasonCode = "invalid_item_source_refs"
|
||||
policy = "dnd.item_registry.validator.source_refs.v2"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -16,7 +16,6 @@ import (
|
||||
const (
|
||||
Key = "extract/dnd/item-registry/source_relatedness"
|
||||
ReasonCode = "item_not_near_source"
|
||||
policy = "dnd.item_registry.validator.source_relatedness.v1"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -20,7 +20,6 @@ import (
|
||||
const (
|
||||
Key = "normalize/dnd/location-occurrences/invariants"
|
||||
ReasonCode = "invalid_location_occurrence_normalization"
|
||||
policy = "dnd.location_occurrences.validator.normalized.v1"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -16,7 +16,6 @@ import (
|
||||
const (
|
||||
Key = "extract/dnd/location-occurrences/registry"
|
||||
ReasonCode = "invalid_location_occurrence_registry"
|
||||
policy = "dnd.location_occurrences.validator.registry.v2"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -15,7 +15,6 @@ import (
|
||||
const (
|
||||
Key = "extract/dnd/location-occurrences/shape"
|
||||
ReasonCode = "invalid_location_occurrence_shape"
|
||||
policy = "dnd.location_occurrences.validator.shape.v2"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -17,7 +17,6 @@ import (
|
||||
const (
|
||||
Key = "extract/dnd/location-occurrences/source_refs"
|
||||
ReasonCode = "invalid_location_occurrence_source_refs"
|
||||
policy = "dnd.location_occurrences.validator.source_refs.v2"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -16,7 +16,6 @@ import (
|
||||
const (
|
||||
Key = "extract/dnd/location-occurrences/source_relatedness"
|
||||
ReasonCode = "location_occurrence_not_near_source"
|
||||
policy = "dnd.location_occurrences.validator.source_relatedness.v1"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -14,10 +14,8 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
Key = "normalize/dnd/location-registry/identity"
|
||||
ReasonCode = "invalid_location_identity"
|
||||
policy = domainidentity.Policy
|
||||
correctionPolicy = "dnd.location_registry.validator.identity.v2"
|
||||
Key = "normalize/dnd/location-registry/identity"
|
||||
ReasonCode = "invalid_location_identity"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -15,7 +15,6 @@ import (
|
||||
const (
|
||||
Key = "extract/dnd/location-registry/shape"
|
||||
ReasonCode = "invalid_location_shape"
|
||||
policy = "dnd.location_registry.validator.shape.v2"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -17,7 +17,6 @@ import (
|
||||
const (
|
||||
Key = "extract/dnd/location-registry/source_refs"
|
||||
ReasonCode = "invalid_location_source_refs"
|
||||
policy = "dnd.location_registry.validator.source_refs.v3"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -16,7 +16,6 @@ import (
|
||||
const (
|
||||
Key = "extract/dnd/location-registry/source_relatedness"
|
||||
ReasonCode = "location_not_near_source"
|
||||
policy = "dnd.location_registry.validator.source_relatedness.v2"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -20,7 +20,6 @@ import (
|
||||
const (
|
||||
Key = "normalize/dnd/npc-occurrences/invariants"
|
||||
ReasonCode = "invalid_npc_occurrence_normalization"
|
||||
policy = "dnd.npc_occurrences.validator.normalized.v1"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -16,7 +16,6 @@ import (
|
||||
const (
|
||||
Key = "extract/dnd/npc-occurrences/registry"
|
||||
ReasonCode = "invalid_npc_occurrence_registry"
|
||||
policy = "dnd.npc_occurrences.validator.registry.v2"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -15,7 +15,6 @@ import (
|
||||
const (
|
||||
Key = "extract/dnd/npc-occurrences/shape"
|
||||
ReasonCode = "invalid_npc_occurrence_shape"
|
||||
policy = "dnd.npc_occurrences.validator.shape.v2"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -17,7 +17,6 @@ import (
|
||||
const (
|
||||
Key = "extract/dnd/npc-occurrences/source_refs"
|
||||
ReasonCode = "invalid_npc_occurrence_source_refs"
|
||||
policy = "dnd.npc_occurrences.validator.source_refs.v3"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -16,7 +16,6 @@ import (
|
||||
const (
|
||||
Key = "extract/dnd/npc-occurrences/source_relatedness"
|
||||
ReasonCode = "npc_occurrence_not_near_source"
|
||||
policy = "dnd.npc_occurrences.validator.source_relatedness.v2"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -14,10 +14,8 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
Key = "normalize/dnd/npc-registry/identity"
|
||||
ReasonCode = "invalid_npc_identity"
|
||||
policy = domainidentity.Policy
|
||||
correctionPolicy = "dnd.npc_registry.validator.identity.v2"
|
||||
Key = "normalize/dnd/npc-registry/identity"
|
||||
ReasonCode = "invalid_npc_identity"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -14,7 +14,6 @@ import (
|
||||
const (
|
||||
Key = "extract/dnd/npc-registry/shape"
|
||||
ReasonCode = "invalid_npc_shape"
|
||||
policy = "dnd.npc_registry.validator.shape.v2"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -16,7 +16,6 @@ import (
|
||||
const (
|
||||
Key = "extract/dnd/npc-registry/source_refs"
|
||||
ReasonCode = "invalid_npc_source_refs"
|
||||
policy = "dnd.npc_registry.validator.source_refs.v3"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -15,7 +15,6 @@ import (
|
||||
const (
|
||||
Key = "extract/dnd/npc-registry/source_relatedness"
|
||||
ReasonCode = "npc_not_near_source"
|
||||
policy = "dnd.npc_registry.validator.source_relatedness.v2"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -17,7 +17,6 @@ import (
|
||||
const (
|
||||
Key = "normalize/dnd/scene-descriptions/invariants"
|
||||
ReasonCode = "invalid_scene_description_normalization"
|
||||
policy = "dnd.scene_descriptions.validator.invariants.v1"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -16,7 +16,6 @@ import (
|
||||
const (
|
||||
Key = "extract/dnd/scene-descriptions/shape"
|
||||
ReasonCode = "invalid_scene_description_shape"
|
||||
policy = "dnd.scene_descriptions.validator.shape.v2"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -16,7 +16,6 @@ import (
|
||||
const (
|
||||
Key = "extract/dnd/scene-descriptions/source_refs"
|
||||
ReasonCode = "invalid_scene_description_source_refs"
|
||||
policy = "dnd.scene_descriptions.validator.source_refs.v1"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -18,7 +18,6 @@ import (
|
||||
const (
|
||||
Key = "extract/dnd/scene-descriptions/source_relatedness"
|
||||
ReasonCode = "scene_description_not_near_source"
|
||||
policy = "dnd.scene_descriptions.validator.source_relatedness.v1"
|
||||
)
|
||||
|
||||
var stopwords = map[string]struct{}{
|
||||
|
||||
@@ -17,7 +17,6 @@ import (
|
||||
const (
|
||||
Key = "extract/dnd/spells/catalog"
|
||||
ReasonCode = "unknown_spell"
|
||||
policy = "dnd.spells.validator.catalog.v2"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -14,7 +14,6 @@ import (
|
||||
const (
|
||||
Key = "extract/dnd/spells/shape"
|
||||
ReasonCode = "invalid_spell_shape"
|
||||
policy = "dnd.spells.validator.shape.v2"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -16,7 +16,6 @@ import (
|
||||
const (
|
||||
Key = "extract/dnd/spells/source_refs"
|
||||
ReasonCode = "invalid_source_refs"
|
||||
policy = "dnd.spells.validator.source_refs.v3"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
@@ -16,7 +16,6 @@ import (
|
||||
const (
|
||||
Key = "extract/dnd/spells/source_relatedness"
|
||||
ReasonCode = "spell_not_near_source"
|
||||
policy = "dnd.spells.validator.source_relatedness.v1"
|
||||
)
|
||||
|
||||
type Options struct{}
|
||||
|
||||
Reference in New Issue
Block a user