-
Notifications
You must be signed in to change notification settings - Fork 566
SchemaContract value field is not being populated when calling apiSchema.get #4718
Comments
So just to test, I went into my node_modules and removed the '.value' part of the serializedName so it was just 'properties.document'. I was then able to get a json reconstruction of the definitions of the schema. I am wondering how to get the YAML definition in its entirety but sending Content-Type 'application/vnd.oai.openapi' doesn't seem to change anything, I always just get the definitions, but that's a separate issue from this, though I would like some answer as to how one would get that. |
Is there a better place to raise this issue? It seems like the return content type is going to dictate whether you have this issue or not and with no mechanism to change that to get around it my project is essentially on hold. |
@solankisamir from the api management team can help you in this issue. |
yes.. this is an issue in the Contract. The schema document should just be We also support Wsdl (SOAP) based APIs. For those apis the schema document is accessible at |
@awaldow we are working on fixing it, give it a week to reach to all clients. |
Thanks guys, this will help me a ton |
Try this package https://www.npmjs.com/package/azure-arm-apimanagement/v/5.1.0 The |
azure-sdk-for-node/lib/services/apimanagement/lib/models/schemaContract.js
Lines 79 to 81 in d662a28
I was attempting to use the apiManagementClient to pull down the schema for one of my APIs and noticed the returned response did not contain the document itself, just the metadata. Upon further investigation, I noticed that deep down in the _get call for apiSchema.js the document is indeed being returned, but after a pass through serialization.js it is being stripped because (I think) the serializedName in the schema contract is not valid. It is looking for properties.document.value but there is just properties.document and properties.document.definition et al once it passes through a JSON.parse here:
azure-sdk-for-node/lib/services/apimanagement/lib/operations/apiSchema.js
Lines 568 to 572 in d662a28
The text was updated successfully, but these errors were encountered: