Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

GitHub Action to generate a python client package from an openapi spec

License

NotificationsYou must be signed in to change notification settings

openapi-generators/openapi-python-client-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The official GitHub Action foropenapi-python-client - generates a modern Python client package from an OpenAPI document

Inputs

openapi-python-client-version

The version of the openapi-python-client package to use. If unspecified the latest released version will be used.Version 2 of this action only supports version 0.9.0+ of the generator. Use version 1 of this action for older versions of the generator.

openapi-file

The path (with respect to the current directory/the workspace) to the OpenAPI document (both JSON and YAML are supported). Defaults to just "openapi.json" i.e. a file in the current directory called openapi.json.

openapi-url

The url of the OpenAPI document. Overridesopenapi-file - If unspecified the value of theopenapi-file input (which defaults to justopenapi.json) will be used to generate the client.

config-file

The path (with respect to the current directory/the workspace) to the config.yml to be used with openapi-python-client. Configuaration is not required so if this is unspecified then no configuration will be passed along. Seeopenapi-python-client's README for available configuration

extra-args

This is a catch-all to allow you to pass additional arguments toopenapi-python-client.

Outputs

No outputs are returned.The generated client is placed in the current directory. The name of the package (unless configured differently) will betitle-client where "title" comes from the field with the same name within theinfo section of the openapi document.

Example usage

jobs:generate-python-client:runs-on:ubuntu-latestname:Examplesteps:# Checkout your code      -name:Checkoutuses:actions/checkout@v2# Generate your openapi document (if you don't write it manually)# Use the action to generate a client package# This uses all defaults (latest version, openapi.json in the current workspace, no configuration)      -name:Generate Python Clientuses:openapi-generators/openapi-python-client-action@v2# Do something with the generated client (likely publishing it somewhere)# Here we assume that the info/title in the openapi document was "example-project"      -name:Do something with the clientrun:|          cd example-project-client

About

GitHub Action to generate a python client package from an openapi spec

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors4

  •  
  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp