When using the editor I've set the content type as 
'application/vnd.api+json' using the sample below. But when I test it in 
the editor I am returned an error '451 Unsupported Media Type'
If I look at the raw tab the content type is reported as 'Content-Type: 
application/vnd.api+json; charset=utf-8' I like the charset on the end is 
breaking it in the editor. I've tried in chrome and IE and get the same.


swagger: '2.0'
info:
  version: 1.0.0
  title: test
  description: it glue api
host: api.itglue.com
schemes:
  - https
produces:
  - application/vnd.api+json
consumes:
  - application/vnd.api+json
parameters:
  x-api-key:
    name: x-api-key
    type: string
    in: header
    required: true
paths:
  /organizations:
    parameters:
      - $ref: '#/parameters/x-api-key'
    post:
      produces:
       - application/vnd.api+json
      consumes:
       - application/mycom+json     
      responses:
        200:
          description: OK

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to