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

Make ApiSchema GET Contract consistent for all api Types #6372

Closed
solankisamir opened this issue Jun 18, 2019 · 28 comments
Closed

Make ApiSchema GET Contract consistent for all api Types #6372

solankisamir opened this issue Jun 18, 2019 · 28 comments
Assignees
Labels
API Management Service Attention Workflow: This issue is responsible by Azure service team.

Comments

@solankisamir
Copy link
Member

Because of the weirdness, clients have to write custom code to extract the exact schema

application/vnd.ms-azure-apim.swagger.definitions+json

{
   "properties" : {
    "contentType": "application/vnd.ms-azure-apim.swagger.definitions+json",
    "document" : "json schema here"
    }
}

But for application/vnd.ms-azure-apim.xsd+xml or application/vnd.oai.openapi.components+json or application/vnd.ms-azure-apim.wadl.grammars+xml

{
   "properties" : {
    "contentType": "application/vnd.ms-azure-apim.swagger.definitions+json",
    "document" : {
          "value" : "api schema here"
         }
    }
}
@wasfree
Copy link

wasfree commented Jun 26, 2019

Is there a approximate ETA on this?

@solankisamir
Copy link
Member Author

we are planning to release this change in the api-version 2019-08-01, which should go out by the end of September 2019. We are clubbing multiple other changes and hence it will take time.

@tombuildsstuff
Copy link
Contributor

@solankisamir is there a timeline for when this'll become available in the Swagger too?

@solankisamir
Copy link
Member Author

@tombuildsstuff, this got delayed and we are just starting on it on the service side changes

@arifsundrani
Copy link

@solankisamir any updates?

@timja
Copy link

timja commented Nov 6, 2019

Any updates @solankisamir?

@J0F3
Copy link

J0F3 commented Nov 14, 2019

@solankisamir any news? Is there an approximate ETA when we can expect a fix?
Seem the resolution of multiple issues and improvements in the Azure Terrafrom provider are blocked because of that one here. 😢

Thx!

@vfedonkin
Copy link
Contributor

vfedonkin commented Nov 14, 2019

The implementation (and data returned) will stay exactly the same, but the documentation/specification will be changed.

Instead of 2 current contracts specifications:
"contentType": "",
"document":

and
"contentType": "",
"document":
{
"value":"",
}

We will have only one:

{
"properties" : {
"contentType": "application/vnd.ms-azure-apim.swagger.definitions+json",
"document" : {
"value" : " (api schema if not JSON based) "
"definitions" : { (JSON object descriping types definitions if JSON based (swagger or openApi)) }
}

}
}

So new contract may contain either "value" or "definitions" filled depending on the content type.
It already works this way right now, but documentation is just unclear.

@vfedonkin
Copy link
Contributor

The documentation changes should be released till the end of the year.

@evertonmc
Copy link

The documentation changes should be released till the end of the year.

Any place we can track the progress besides here?

@J0F3
Copy link

J0F3 commented Jan 6, 2020

First of all: Happy new year! 😊🎉

The documentation changes should be released till the end of the year.

Which brings me directly to my question. As end of the year is now over 😉 what is the current progress of this?

Because multiple issues of resources in the Azure Terraform Provider are blocked by this I am very curious when this get finally fixed.

Thx
Jonas

@vfedonkin
Copy link
Contributor

The documentations update completed month or two ago, but it's still in review/publishing stage. At the same time, the question: why it blocks the customer? The documentation changes were described above, so it can be sent to the customer now.

@J0F3
Copy link

J0F3 commented Jan 6, 2020

Good question.
@tombuildsstuff or @solankisamir can you please elaborate a bit why this issue here is still blocking several issues in the Azure Terraform Provider Project.
For example: hashicorp/terraform-provider-azurerm#5096

Thx!

@vfedonkin
Copy link
Contributor

@J0F3 , I checked the item you asked about. In addition to the documentation, customer is using the Azure SDK generated by the specs, which are not updated yet. Specs will be updated together with the documentation. So customer will need to wait till we released 2019-12-01 version. Plan was 01/01/2020 but postponed because of release freezes / reviews.

@J0F3
Copy link

J0F3 commented Jan 7, 2020

Ah ok. Thank you @vfedonkin you for looked into it.

@mcalster
Copy link

Hi @vfedonkin do you know what kind of timeline we can expect on the release?

@arifsundrani
Copy link

@mcalster I believe #8066 was the pull request associated to these changes. There was a premature merge of the PR that needs to be reverted.

@mcalster
Copy link

@mcalster I believe #8066 was the pull request associated to these changes. There was a premature merge of the PR that needs to be reverted.

Ok, the PR merge has been reverted, any idea of when the "intended merge" will happen? We are currently building a pipeline to push open-api specs with terraform. We don't want to revert to swagger 😉

@arifsundrani
Copy link

@mcalster I have been following and #8225 will address the items at the end of 8066. I do not know of a timeframe as to when the changes will finally be pushed. I am eagerly awaiting these changes as well.

Thanks @solankisamir & @vfedonkin for your hard work, we really appreciate it!

@yungezz yungezz removed their assignment Feb 6, 2020
@hctv19
Copy link

hctv19 commented Mar 3, 2020

@arifsundrani It looks like #8225 was merged on Jan 29th. Does that merge unblock this issue?

@arifsundrani
Copy link

@hctv19 I’m not sure as I am just following along. I believe @solankisamir would be able to answer your question.

@vfedonkin
Copy link
Contributor

Not yet. This PR is also required before we can regenerate SDK: #8393

@hctv19
Copy link

hctv19 commented Mar 7, 2020

@vfedonkin looks like they finally got #8393 merged, so I think this should be unblocked now

@hctv19
Copy link

hctv19 commented Mar 9, 2020

Also gently pinging @solankisamir on this PR since #8393 has been resolved

@hctv19
Copy link

hctv19 commented Mar 12, 2020

@solankisamir @vfedonkin Is there anything else needed before this can be approved and merged?

@Harmindersingh05
Copy link

Any update on this? This is the only item that is required to support API Management consumption model via terraforms.

@vfedonkin
Copy link
Contributor

@Harmindersingh05, just yesterday we got signed all required PRs and now preparing the nuget package. Should be ready in nearest days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Management Service Attention Workflow: This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests