The plugin displays the UI differently than editor.swagger.io
Samsonkin opened this issue · comments
Hi, this is an example YAML file.
openapi: 3.0.1
info:
title: Title
version: 1.0.0
contact:
name: Contact
url: http://www.contact.com/
paths:
/segment/{id}/customers:
get:
parameters:
- in: path
name: id
description: A segment ID.
required: true
schema:
type: integer
format: int64
example: 89
responses:
'200':
description: OK.
content:
application/json:
schema:
type: array
items:
type: object
properties:
customerId:
description: A customer ID.
type: integer
format: int64
required:
- customerId
example:
- customerId: 2345
- customerId: 6750
'404':
description: Not found.
content:
application/json:
examples:
ERROR-01:
value:
code: ERROR-01
title: Segment was not found.
detail: Segment with ID = '1' was not found.
ERROR-02:
value:
code: ERROR-02
title: Segment was deleted.
detail: Segment with ID = '1' was deleted.
Using editor.swagger.io:
https://drive.google.com/open?id=1jvJEcVEjS1_3JXn19rc7DMLHj0daLjUD
https://yadi.sk/i/xSuRNNvejwaahQ
Using the plugin:
https://drive.google.com/open?id=16qw1_5gRwmg_ToCbjfsvz458r2n5hEy_
https://yadi.sk/i/ih8RwfQQk0neog
https://drive.google.com/open?id=1yDryfmI-ILcy6rBk0FSXBLF7Kfh74Nm_
https://yadi.sk/i/SogpJJIOpxpGVA
It looks a little strange. Is this a bug or has this functionality not been implemented yet?