Skip to content

Commit

Permalink
Update provider version regex
Browse files Browse the repository at this point in the history
Signed-off-by: Rumen Vasilev <[email protected]>
  • Loading branch information
rumenvasilev committed Oct 25, 2023
1 parent c10799f commit ef0c4eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Latest

* Update provider version regex to capture all possible variants that are returned from the terraform registry today
* Added X-Terraform-Version request header for module calls
* Registry response to module version download path must be 204, not 200, because the server returns empty body. Download link is passed by means of X-Terraform-Get response header. Both terraform and opentofu support that (in fact they do support both 200 and 204).
* Added response errors to the model.
Expand Down
8 changes: 6 additions & 2 deletions model/shapes.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@ string Arch
)
string Filename

@pattern("^darwin|linux|windows$")
@pattern("^darwin|linux|windows|openbsd|freebsd|solaris$")
string OS

@pattern("^\\d{1,2}\\.\\d$")
// 4
// 4.0
// 5.1
// 4.0,5.0 - more an exception, but still seen in https://registry.terraform.io/v1/providers/hashicorp/aws/versions -> 2.70.3
@pattern("^(\\d{1,2}(\\.\\d)?)$|(\\d{1,2}(\\.\\d)?),(\\d{1,2}(\\.\\d)?)$")
string Protocol

@pattern("^[a-z0-9]{64}$")
Expand Down

0 comments on commit ef0c4eb

Please sign in to comment.