fix: validates the record conent based on record type (#267)
* fix: validates the record conent based on record type Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * fix typo Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * apply feedback Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * apply feedback Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> --------- Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl>
This commit is contained in:
parent
a88688ce93
commit
32d176ee86
3 changed files with 196 additions and 1 deletions
|
|
@ -158,7 +158,7 @@ func (r *recordSetResource) Schema(_ context.Context, _ resource.SchemaRequest,
|
|||
Validators: []validator.List{
|
||||
listvalidator.SizeAtLeast(1),
|
||||
listvalidator.UniqueValues(),
|
||||
listvalidator.ValueStringsAre(validate.IP()),
|
||||
listvalidator.ValueStringsAre(validate.RecordSet()),
|
||||
},
|
||||
},
|
||||
"ttl": schema.Int64Attribute{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue