Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The plugin displays the UI differently than editor.swagger.io #302

Open
Samsonkin opened this issue Mar 10, 2020 · 0 comments
Open

The plugin displays the UI differently than editor.swagger.io #302

Samsonkin opened this issue Mar 10, 2020 · 0 comments

Comments

@Samsonkin
Copy link

Samsonkin commented Mar 10, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant