This package provides functionality to analyze OpenAPI 3.0 Specification files and build clients and servers from that specification.
For more details, please refer the Project Documentation
From the command line:
$ python -m openapi_parser data/petstore.yaml
From the Python:
from openapi_parser.exporter import PackageWriter
from openapi_parser.parser.loader import OpenApiParser
def main():
parser = OpenApiParser.open('data/petstore.yaml')
parser.load_all()
package_writer = PackageWriter(parser)
package_writer.write_package()
return 0
if (__name__ == '__main__'):
exit_code = main()
exit(exit_code)
style
-encodingschema
and content
inside parameters conflict support