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

Add support for OpenAPI 3 #181

Draft
wants to merge 15 commits into
base: master
Choose a base branch
from
Draft

Add support for OpenAPI 3 #181

wants to merge 15 commits into from

Commits on May 9, 2020

  1. Initial refactor into api mapper

    Tim Burch committed May 9, 2020
    Configuration menu
    Copy the full SHA
    1000716 View commit details
    Browse the repository at this point in the history

Commits on May 10, 2020

  1. added test module for api-dto-mapper

    Tim Burch committed May 10, 2020
    Configuration menu
    Copy the full SHA
    0a84173 View commit details
    Browse the repository at this point in the history

Commits on May 16, 2020

  1. Initial refactor into api mapper

    Tim Burch committed May 16, 2020
    Configuration menu
    Copy the full SHA
    0f05b0d View commit details
    Browse the repository at this point in the history
  2. added test module for api-dto-mapper

    Tim Burch committed May 16, 2020
    Configuration menu
    Copy the full SHA
    7b8abf3 View commit details
    Browse the repository at this point in the history
  3. update Routes to use apiDto

    Tim Burch committed May 16, 2020
    Configuration menu
    Copy the full SHA
    2680479 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ef89d87 View commit details
    Browse the repository at this point in the history

Commits on May 19, 2020

  1. add oas3 mapper

    Tim Burch committed May 19, 2020
    Configuration menu
    Copy the full SHA
    96a2f06 View commit details
    Browse the repository at this point in the history
  2. 'clean up local file changes'

    Tim Burch committed May 19, 2020
    Configuration menu
    Copy the full SHA
    8b5afc5 View commit details
    Browse the repository at this point in the history

Commits on May 21, 2020

  1. change private field to underscored field

    Tim Burch committed May 21, 2020
    Configuration menu
    Copy the full SHA
    3cec211 View commit details
    Browse the repository at this point in the history
  2. update eslint ecmaVersion and fix lint errors

    Tim Burch committed May 21, 2020
    Configuration menu
    Copy the full SHA
    e77efac View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2020

  1. Branch fixtures and update tests

    Each of the fixtures/defs have been branched to oas2 and oas3 versions.
    Rather than using the "official" petstore OpenAPI 3 samples, I converted
    the existing ones to ensure they are the same functionally.
    
    Most of the unit tests have been updated to run both oas2 and oas3
    versions to ensure all existing functionality works for both versions.
    
    There are several issues that still need to be solved:
    
    - oas3 servers: Right now, I am assuming there will be one server and
    it's value will essentially be "basePath". I'd like to change this to
    handle a full server declaration, probably using URL to parse it and get
    to the correct basePath.
    
    - oas3 file parameters: These are pretty different in oas3 and oas2. I
    haven't looked to deeply at this yet - still a TODO.
    
    - parameter serialization: In oas3, "collectionFormat" is used. Is oas3,
        this is split between "style" and "explode". Existing unit test
        cases are passing, but that is mostly a happy coincidence. Better
        support needs to be added.
    
    - parameter schemas/templates: I'd like to find a better way to unify
    oas2 and oas3 parameter structures so we can avoid a bunch of "if"
    checks everywhere. I was initially trying to flatten oas3 parameters
    to be more like oas2. I am now thinking that it might be better to do
    the opposite and separate "parameter" metadata and the parameter
    "schema".
    Tim Burch committed Jun 14, 2020
    Configuration menu
    Copy the full SHA
    20c1b1b View commit details
    Browse the repository at this point in the history
  2. remove unused variable

    Tim Burch committed Jun 14, 2020
    Configuration menu
    Copy the full SHA
    d5de80b View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2020

  1. add oas3 test for validation special cases

    Tim Burch committed Jun 15, 2020
    Configuration menu
    Copy the full SHA
    e5d64c2 View commit details
    Browse the repository at this point in the history
  2. handle full url for oas3 server

    Tim Burch committed Jun 15, 2020
    Configuration menu
    Copy the full SHA
    5b8bfef View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2020

  1. handle oas3 http auth schemes

    Tim Burch committed Jun 20, 2020
    Configuration menu
    Copy the full SHA
    3c4a798 View commit details
    Browse the repository at this point in the history