autorest icon indicating copy to clipboard operation
autorest copied to clipboard

Add request id parameter to all paths

Open raveeshupahuja opened this issue 6 years ago • 2 comments

I am trying to write a directive to add a request id parameter to all paths. But I am getting error that the

directive:

  • from: swagger-document where: $..paths...parameters transform: >- $ = $.push({ name: "x-ms-client-request-id", in: "header", required: false, type: "string", description: "The identifier for the request.", x-ms-client-request-id : true});

getting below error Schema violation: Expected type object but found type integer - file:

raveeshupahuja avatar Jun 08 '20 18:06 raveeshupahuja

Hey @raveeshupahuja are you still having this issue? If so could you share more information(The swagger file, the full error and command line used)?

timotheeguerin avatar Mar 12 '21 22:03 timotheeguerin

Closing for inactivity, please open a new issue if necessary

lmazuel avatar Mar 30 '21 21:03 lmazuel