From 8b4b08ca59dd2ecc491a629352df76bd3b43a6ec Mon Sep 17 00:00:00 2001 From: Chris Kim Date: Tue, 24 Dec 2024 10:04:32 +1300 Subject: [PATCH] fix: Project persistence settings basepath should be required, not optional --- octopusdeploy_framework/schemas/project.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/octopusdeploy_framework/schemas/project.go b/octopusdeploy_framework/schemas/project.go index 61ea763b..3eda5905 100644 --- a/octopusdeploy_framework/schemas/project.go +++ b/octopusdeploy_framework/schemas/project.go @@ -78,7 +78,7 @@ func (p ProjectSchema) GetResourceSchema() resourceSchema.Schema { NestedObject: resourceSchema.NestedBlockObject{ Attributes: map[string]resourceSchema.Attribute{ "url": util.ResourceString().Required().Description("The URL associated with these version control settings.").Build(), - "base_path": util.ResourceString().Optional().Description("The base path associated with these version control settings.").Build(), + "base_path": util.ResourceString().Required().Description("The base path associated with these version control settings.").Build(), "default_branch": util.ResourceString().Optional().Description("The default branch associated with these version control settings.").Build(), "protected_branches": util.ResourceSet(types.StringType).Optional().Computed().PlanModifiers(setplanmodifier.UseStateForUnknown()).Description("A list of protected branch patterns.").Build(), }, @@ -90,7 +90,7 @@ func (p ProjectSchema) GetResourceSchema() resourceSchema.Schema { Attributes: map[string]resourceSchema.Attribute{ "git_credential_id": util.ResourceString().Required().Build(), "url": util.ResourceString().Required().Description("The URL associated with these version control settings.").Build(), - "base_path": util.ResourceString().Optional().Description("The base path associated with these version control settings.").Build(), + "base_path": util.ResourceString().Required().Description("The base path associated with these version control settings.").Build(), "default_branch": util.ResourceString().Optional().Description("The default branch associated with these version control settings.").Build(), "protected_branches": util.ResourceSet(types.StringType).Optional().Computed().PlanModifiers(setplanmodifier.UseStateForUnknown()).Description("A list of protected branch patterns.").Build(), }, @@ -103,7 +103,7 @@ func (p ProjectSchema) GetResourceSchema() resourceSchema.Schema { "url": util.ResourceString().Required().Description("The URL associated with these version control settings.").Build(), "username": util.ResourceString().Required().Description("The username for the Git credential.").Build(), "password": util.ResourceString().Sensitive().Required().Description("The password for the Git credential").Build(), //util.GetPasswordResourceSchema(false), - "base_path": util.ResourceString().Optional().Description("The base path associated with these version control settings.").Build(), + "base_path": util.ResourceString().Required().Description("The base path associated with these version control settings.").Build(), "default_branch": util.ResourceString().Optional().Description("The default branch associated with these version control settings.").Build(), "protected_branches": util.ResourceSet(types.StringType).Optional().Computed().PlanModifiers(setplanmodifier.UseStateForUnknown()).Description("A list of protected branch patterns.").Build(), },