Skip to content

Commit

Permalink
docs: proposed changes to local resources documentation schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Niklas Schindler committed Oct 21, 2024
1 parent 9af9aaf commit 8d6501a
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions internal/schema/local_resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"name": "name",
"string": {
"computed_optional_required": "required",
"description": "Define the name for the local security group. The maximum length is 256 characters.",
"description": "Define the name for the local security group. The maximum length is 256 characters. A local security group name can't contain the following characters: `\"`, `/`, `\\`, `[`, `]`, `:`, `;`, `|`, `=`, `,`, `+`, `*`, `?`, `<`, `>`, `@`",
"validators": [
{
"custom": {
Expand All @@ -66,6 +66,19 @@
],
"schema_definition": "stringvalidator.LengthBetween(1, 256)"
}
},
{
"custom": {
"imports": [
{
"path": "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
},
{
"path": "regexp"
}
],
"schema_definition": "stringvalidator.RegexMatches(regexp.MustCompile(`^[^\"/\\[\\]:;|=,+*?<>\\@]+$`), `cannot contain the following characters: \"/\\[]:;|=,+*?<>@ `)"
}
}
],
"plan_modifiers": [
Expand Down Expand Up @@ -228,7 +241,7 @@
"path": "regexp"
}
],
"schema_definition": "stringvalidator.RegexMatches(regexp.MustCompile(`^[^\"\/\\[\\]:;|=,+*?<>\\@]+$`), `cannot contain the following characters: \"/\\[]:;|=,+*?<>@ `)"
"schema_definition": "stringvalidator.RegexMatches(regexp.MustCompile(`^[^\"/\\[\\]:;|=,+*?<>\\@]+$`), `cannot contain the following characters: \"/\\[]:;|=,+*?<>@ `)"
}
}
],
Expand Down Expand Up @@ -360,8 +373,8 @@
{
"name": "local_group_member",
"schema": {
"description": "Manage group member for local security groups.",
"markdown_description": "Manage group member for local security groups.",
"description": "Manage members of local security groups.",
"markdown_description": "Manage members of local security groups.",
"attributes": [
{
"name": "group_id",
Expand Down

0 comments on commit 8d6501a

Please sign in to comment.