Skip to content
This repository has been archived by the owner on Jul 7, 2022. It is now read-only.

Commit

Permalink
Add OpenAPIParser
Browse files Browse the repository at this point in the history
  • Loading branch information
rightlag committed Aug 11, 2017
1 parent 4c0f2b6 commit af968e4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions aptos/swagger/v3/parser.py
@@ -0,0 +1,12 @@
from .model import Swagger
from .visitor import OpenAPIResolveVisitor
from ...parser import Parser


class OpenAPIParser(Parser):

@staticmethod
def parse(schema):
component = Swagger.unmarshal(schema)
component.accept(OpenAPIResolveVisitor(schema))
return component

0 comments on commit af968e4

Please sign in to comment.