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

Support openapi 'servers' #216

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Commits on Apr 24, 2023

  1. feat: Support for 'servers' in openapi

    This commit also fixes a test with the previous spec file
    (https://api.apis.guru/v2/specs/medium.com/1.0.0/swagger.json) that is
    no longer available.
    
    Signed-off-by: Arturo Volpe <[email protected]>
    aVolpe committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    8e873b8 View commit details
    Browse the repository at this point in the history
  2. feat: Add test to check load of yml file

    Signed-off-by: Arturo Volpe <[email protected]>
    aVolpe committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    030daed View commit details
    Browse the repository at this point in the history
  3. feat: Add support for open api servers

    In openapi 3 the 'schemes' and 'basePath' were replaced with a single
    property called 'servers', in this property we introduce the available
    servers with the full path, for example:
    
    ```yaml
    servers:
      - url: https://statsapi.web.nhl.com/api/v1
     ```
    
    With this change, a flag is added in the parsing of the context
    `is_open_api` that can be used to check for the new properties available
    in open api 3.
    
    fixes httpie#197
    
    Signed-off-by: Arturo Volpe <[email protected]>
    aVolpe committed Apr 24, 2023
    Configuration menu
    Copy the full SHA
    3feb279 View commit details
    Browse the repository at this point in the history