Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azurerm_api_management_api - support for openapi v3 content formats #6618

Merged
merged 1 commit into from Apr 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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