Skip to content

Commit

Permalink
azurerm_api_management_api - support for openapi v3 content formats #…
Browse files Browse the repository at this point in the history
  • Loading branch information
lucashuet93 committed Apr 24, 2020
1 parent 1a7caee commit 4855c13
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Expand Up @@ -100,6 +100,10 @@ func resourceArmApiManagementApi() *schema.Resource {
Type: schema.TypeString,
Required: true,
ValidateFunc: validation.StringInSlice([]string{
string(apimanagement.Openapi),
string(apimanagement.Openapijson),
string(apimanagement.OpenapijsonLink),
string(apimanagement.OpenapiLink),
string(apimanagement.SwaggerJSON),
string(apimanagement.SwaggerLinkJSON),
string(apimanagement.WadlLinkJSON),
Expand Down
2 changes: 1 addition & 1 deletion examples/api-management/variables.tf
Expand Up @@ -7,7 +7,7 @@ variable "location" {
}

variable "open_api_spec_content_format" {
description = "The format of the content from which the API Definition should be imported. Possible values are: swagger-json, swagger-link-json, wadl-link-json, wadl-xml, wsdl and wsdl-link."
description = "The format of the content from which the API Definition should be imported. Possible values are: openapi, openapi+json, openapi+json-link, openapi-link, swagger-json, swagger-link-json, wadl-link-json, wadl-xml, wsdl and wsdl-link."
}

variable "open_api_spec_content_value" {
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/api_management_api.html.markdown
Expand Up @@ -84,7 +84,7 @@ The following arguments are supported:

A `import` block supports the following:

* `content_format` - (Required) The format of the content from which the API Definition should be imported. Possible values are: `swagger-json`, `swagger-link-json`, `wadl-link-json`, `wadl-xml`, `wsdl` and `wsdl-link`.
* `content_format` - (Required) The format of the content from which the API Definition should be imported. Possible values are: `openapi`, `openapi+json`, `openapi+json-link`, `openapi-link`, `swagger-json`, `swagger-link-json`, `wadl-link-json`, `wadl-xml`, `wsdl` and `wsdl-link`.

* `content_value` - (Required) The Content from which the API Definition should be imported. When a `content_format` of `*-link-*` is specified this must be a URL, otherwise this must be defined inline.

Expand Down

0 comments on commit 4855c13

Please sign in to comment.