Well, it depends, but likely something like this: paths: /persons: # put here to apply to all operations in this path parameters: - name: x-mycompany-meta-name1 in: header description: my header required: false type: string - name: x-mycompany-meta-name2 in: header description: my header required: false type: string get: # repeat... responses: # Response code 200: description: Successful response
> On Sep 13, 2016, at 5:04 PM, by...@zuora.com wrote: > > Hi, > > I'm working on a new service API. First I would like to use YAML to describe > the API. > > My problem is that I want to support custom header(s) in the request, and > each header name should start with "x-mycompany-meta-". For example: > > x-mycompany-meta-name1: value1 > x-mycompany-meta-name2: value2 > ... // more custom headers > > How would I be able to do that in swagger YAML? > > Thanks, > > Bing > > -- > You received this message because you are subscribed to the Google Groups > "Swagger" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to swagger-swaggersocket+unsubscr...@googlegroups.com > <mailto:swagger-swaggersocket+unsubscr...@googlegroups.com>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.