Skip to content

chore: prepare release 0.21.0 #1053

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

Merged
merged 1 commit into from
Jun 8, 2024
Merged

chore: prepare release 0.21.0 #1053

merged 1 commit into from
Jun 8, 2024

Conversation

dbanty
Copy link
Collaborator

@dbanty dbanty commented Jun 8, 2024

This PR was created by Knope. Merging it will create a new release

Breaking Changes

Removed the update command

The update command is no more, you can (mostly) replace its usage with some new flags on the generate command.

If you had a package named my-api-client in the current working directory, the update command previously would update the my_api_client module within it. You can now almost perfectly replicate this behavior using openapi-python-client generate --meta=none --output-path=my-api-client/my_api_client --overwrite.

The only difference is that my-api-client would have run post_hooks in the my-api-client directory,
but generate will run post_hooks in the output-path directory.

Alternatively, you can now also run openapi-python-client generate --meta=<your-meta-type> --overwrite to regenerate
the entire client, if you don't care about keeping any changes you've made to the generated client.

Please comment on discussion #824
(or a new discussion, as appropriate) to aid in designing future features that fill any gaps this leaves for you.

Features

Added an --output-path option to generate

Rather than changing directories before running generate you can now specify an output directory with --output-path.
Note that the project name will not be appended to the --output-path, whatever path you specify is where the
generated code will be placed.

Added an --overwrite flag to generate

You can now tell openapi-python-client to overwrite an existing directory, rather than deleting it yourself before
running generate.

@dbanty dbanty merged commit 8591f15 into main Jun 8, 2024
20 checks passed
@dbanty dbanty deleted the release branch June 8, 2024 21:27
micha91 pushed a commit to micha91/openapi-python-client that referenced this pull request May 13, 2025
This PR was created by Knope. Merging it will create a new release

### Breaking Changes

#### Removed the `update` command

The `update` command is no more, you can (mostly) replace its usage with
some new flags on the `generate` command.

If you had a package named `my-api-client` in the current working
directory, the `update` command previously would update the
`my_api_client` module within it. You can now _almost_ perfectly
replicate this behavior using `openapi-python-client generate
--meta=none --output-path=my-api-client/my_api_client --overwrite`.

The only difference is that `my-api-client` would have run `post_hooks`
in the `my-api-client` directory,
but `generate` will run `post_hooks` in the `output-path` directory.

Alternatively, you can now also run `openapi-python-client generate
--meta=<your-meta-type> --overwrite` to regenerate
the entire client, if you don't care about keeping any changes you've
made to the generated client.

Please comment on [discussion
openapi-generators#824](openapi-generators#824)
(or a new discussion, as appropriate) to aid in designing future
features that fill any gaps this leaves for you.

### Features

#### Added an `--output-path` option to `generate`

Rather than changing directories before running `generate` you can now
specify an output directory with `--output-path`.
Note that the project name will _not_ be appended to the
`--output-path`, whatever path you specify is where the
generated code will be placed.

#### Added an `--overwrite` flag to `generate`

You can now tell `openapi-python-client` to overwrite an existing
directory, rather than deleting it yourself before
running `generate`.

Co-authored-by: GitHub <github-actions@github.com>
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.

1 participant