From 4c314da725ea527544f6b67a1691b99fc02d7201 Mon Sep 17 00:00:00 2001 From: David Debeau Date: Mon, 26 Aug 2024 08:38:07 -0500 Subject: [PATCH] Add Repository visibility default to docs --- code_generator/provider_code_spec.json | 2 +- docs/resources/repository.md | 2 +- internal/resource_repository/repository_resource_gen.go | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/code_generator/provider_code_spec.json b/code_generator/provider_code_spec.json index 79a2a18..04fb5f5 100644 --- a/code_generator/provider_code_spec.json +++ b/code_generator/provider_code_spec.json @@ -241,7 +241,7 @@ "default" : { "static": "private" }, - "description": "Repository visibility. Should be private or public.", + "description": "Repository visibility. Should be private or public. Defaults to private.", "validators": [ { "custom": { diff --git a/docs/resources/repository.md b/docs/resources/repository.md index 390db8e..e1304de 100644 --- a/docs/resources/repository.md +++ b/docs/resources/repository.md @@ -37,7 +37,7 @@ resource "quay_repository" "test" { ### Optional - `description` (String) Markdown description -- `visibility` (String) Repository visibility. Should be private or public. +- `visibility` (String) Repository visibility. Should be private or public. Defaults to private. ## Import diff --git a/internal/resource_repository/repository_resource_gen.go b/internal/resource_repository/repository_resource_gen.go index 384b2b0..fabdda4 100644 --- a/internal/resource_repository/repository_resource_gen.go +++ b/internal/resource_repository/repository_resource_gen.go @@ -43,8 +43,8 @@ func RepositoryResourceSchema(ctx context.Context) schema.Schema { "visibility": schema.StringAttribute{ Optional: true, Computed: true, - Description: "Repository visibility. Should be private or public.", - MarkdownDescription: "Repository visibility. Should be private or public.", + Description: "Repository visibility. Should be private or public. Defaults to private.", + MarkdownDescription: "Repository visibility. Should be private or public. Defaults to private.", Validators: []validator.String{ stringvalidator.OneOf([]string{"private", "public"}...), },