@@ -46,12 +46,12 @@ func (av RequireIfAttributeIsOneOf) Description(_ context.Context) string {
4646 var expectedValueDescritpion string
4747 for i , expectedValue := range av .ExceptedValues {
4848 if i == len (av .ExceptedValues )- 1 {
49- expectedValueDescritpion += expectedValue .String ()
49+ expectedValueDescritpion += fmt . Sprintf ( "%s, " , expectedValue .String () )
5050 break
5151 }
5252 expectedValueDescritpion += expectedValue .String ()
5353 }
54- return fmt .Sprintf ("If %s attribute is set and the value is one of %s, this attribute is required " , av .PathExpression , expectedValueDescritpion )
54+ return fmt .Sprintf ("If %s attribute is set and the value is one of %s, this attribute is REQUIRED " , av .PathExpression , expectedValueDescritpion )
5555}
5656
5757func (av RequireIfAttributeIsOneOf ) MarkdownDescription (_ context.Context ) string {
@@ -63,7 +63,7 @@ func (av RequireIfAttributeIsOneOf) MarkdownDescription(_ context.Context) strin
6363 }
6464 expectedValueDescritpion += fmt .Sprintf ("`%s`, " , expectedValue )
6565 }
66- return fmt .Sprintf ("If %s attribute is set and the value is one of %s, this attribute is required " , av .PathExpression , expectedValueDescritpion )
66+ return fmt .Sprintf ("If %s attribute is set and the value is one of %s, this attribute is REQUIRED " , av .PathExpression , expectedValueDescritpion )
6767}
6868
6969func (av RequireIfAttributeIsOneOf ) Validate (ctx context.Context , req RequireIfAttributeIsOneOfRequest , res * RequireIfAttributeIsOneOfResponse ) {
0 commit comments