Add validation to package_type
@@ -33,6 +33,34 @@ func resourceArtifactoryRemoteRepository() *schema.Resource {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
+ Default: "generic",
+ ValidateFunc: validation.StringInSlice([]string{
+ "alpine",
+ "bower",
+ "chef",
+ "cocoapods",
+ "composer",
+ "cran",
+ "debian",
+ "docker",
+ "gems",
+ "generic",
+ "go",
+ "gradle",
+ "helm",
+ "ivy",
+ "maven",
+ "npm",
+ "nuget",
+ "opkg",
+ "p2",
+ "puppet",
+ "pypi",
+ "rpm",
+ "sbt",
+ "vcs",
+ "yum",
+ }, false),
},
"description": {
Type: schema.TypeString,
