diff --git a/backend/FwLite/MiniLcm/Validators/PartOfSpeechIdValidator.cs b/backend/FwLite/MiniLcm/Validators/IsCanonicalPartOfSpeechGuidValidator.cs similarity index 68% rename from backend/FwLite/MiniLcm/Validators/PartOfSpeechIdValidator.cs rename to backend/FwLite/MiniLcm/Validators/IsCanonicalPartOfSpeechGuidValidator.cs index b93949641..1ae40a6e0 100644 --- a/backend/FwLite/MiniLcm/Validators/PartOfSpeechIdValidator.cs +++ b/backend/FwLite/MiniLcm/Validators/IsCanonicalPartOfSpeechGuidValidator.cs @@ -2,9 +2,9 @@ namespace MiniLcm.Validators; -public class PartOfSpeechIdValidator : AbstractValidator +public class IsCanonicalPartOfSpeechGuidValidator : AbstractValidator { - public PartOfSpeechIdValidator() + public IsCanonicalPartOfSpeechGuidValidator() { RuleFor(id => id).Must(BeCanonicalGuid); } diff --git a/backend/FwLite/MiniLcm/Validators/SenseValidator.cs b/backend/FwLite/MiniLcm/Validators/SenseValidator.cs index f65d2807a..34e28f713 100644 --- a/backend/FwLite/MiniLcm/Validators/SenseValidator.cs +++ b/backend/FwLite/MiniLcm/Validators/SenseValidator.cs @@ -11,7 +11,7 @@ public SenseValidator() RuleFor(s => s.Definition).NoEmptyValues(); RuleFor(s => s.Gloss).NoEmptyValues(); // RuleFor(s => s.PartOfSpeech).Empty(); // TODO: Comment out if we're not yet ready to move away from strings - // RuleFor(s => s.PartOfSpeechId).SetValidator(new PartOfSpeechIdValidator()); // Can't do this statelessly, as we'd need a full PartOfSpeech object to check if it's predefined or not + // RuleFor(s => s.PartOfSpeechId).SetValidator(new IsCanonicalPartOfSpeechGuidValidator()); // Can't do this statelessly, as we'd need a full PartOfSpeech object to check if it's predefined or not RuleForEach(s => s.SemanticDomains).SetValidator(new SemanticDomainValidator()); RuleForEach(s => s.ExampleSentences).SetValidator(sense => new ExampleSentenceValidator(sense)); }