Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/t-huyeng/openapi-action
https://github.com/t-huyeng/openapi-action
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/t-huyeng/openapi-action
- Owner: t-huyeng
- License: apache-2.0
- Created: 2022-07-07T14:15:32.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-05T12:46:45.000Z (about 2 years ago)
- Last Synced: 2023-12-13T23:30:43.816Z (11 months ago)
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# openapi-generator-action
Github action for the generation process of generating docs and codeFork of [openapi-generator](https://github.com/wirthual/deutschland-generator-action)
## Inputs
| Input | Required | Default | Description | Example |
|----------------------|----------|--------------|-------------------------------------------------------------------|--------------------------------------|
| `openapi-file` | true | openapi.yaml | The path to the OpenAPI document to generate a client library for | ./api/openapi.json |## Example
```yaml
on: [push, pull_request]
jobs:
openapi_generation:
name: "OpenAPI Generation"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.7.8' ]
steps:
- name: "Generate Client-Code"
uses: t-huyeng/openapi-action@latest
with:
openapi-file: ${{ github.workspace }}/openapi.yaml
```