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

Openapiart cli #441

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Openapiart cli #441

wants to merge 9 commits into from

Conversation

Vibaswan
Copy link
Collaborator

@Vibaswan Vibaswan commented Aug 4, 2023

now openapiart can parse ymls and generate based on yml configuration

example yml

api_files:
  - openapiart/tests/api/info.yaml
  - openapiart/tests/common/common.yaml
  - openapiart/tests/api/api.yaml
  - openapiart/goserver/api/service_a.api.yaml
  - openapiart/goserver/api/service_b.api.yaml
artifact_dir: art
generate_version_api: true
languages:
  python:
    package_name: sanity
  go:
    sdk:
      package_dir: github.com/open-traffic-generator/openapiart/pkg
      package_name: openapiart
      sdk_version: 0.0.1
    server:
      module_path: github.com/open-traffic-generator/openapiart/pkg
      models_prefix: sanity
      models_path: github.com/open-traffic-generator/openapiart/pkg
    tidy:
      relative_package_dir: pkg

can be used as a cli tool

openapiart --help
openapiart --config_file ./config.yaml
python -m openapiart --help
python -m  openapiart --config_file ./config.yaml

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

Successfully merging this pull request may close these issues.

None yet

1 participant