-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathaction.yml
37 lines (35 loc) · 1.2 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: "Generate Python Client from OpenAPI"
description: "Generates a Python client package from an OpenAPI document using the openapi-python-client project"
branding:
icon: "target"
color: "green"
inputs:
openapi-python-client-version:
description: The version of openapi-python-client to use
required: false
default: NOT_SPECIFIED
openapi-file:
description: The path to the OpenAPI document to generate a client library for e.g. docs/openapi.json
required: false
default: openapi.json
openapi-url:
description: The url of the OpenAPI document to generate a client library for e.g. https://petstore3.swagger.io/api/v3/openapi.json
required: false
default: NOT_SPECIFIED
config-file:
description: Path to the config file to be passed along to openapi-python-client
required: false
default: NOT_SPECIFIED
extra-args:
description: Any additional arguments to forward to openapi-python-client
required: false
default: ""
runs:
using: "docker"
image: "Dockerfile"
args:
- ${{ inputs.openapi-python-client-version }}
- ${{ inputs.openapi-file }}
- ${{ inputs.openapi-url }}
- ${{ inputs.config-file }}
- ${{ inputs.extra-args }}