Eli Bishop

Results 7 issues of Eli Bishop

Fixes #1120. There are two related changes here: First, when processing the anyOf/oneOf items in a union, check whether each item will generate a named Python class (i.e. is it...

🐞bug
🥚breaking

**Describe the bug** In some valid specs, the use of `anyOf`, `oneOf`, `nullable`, and/or `type` as a list, can cause generated class names to have unnecessary suffixes (and, sometimes, for...

**Describe the bug** When an object schema derives from another object schema using `allOf`, and redeclares a property that had an object type to use a different object type, the...

Fixes #1123. Details are as described in the changeset. This is a breaking change only in cases where the previous logic was producing an unambiguously wrong result. That is, in...

This more fully fixes https://github.com/openapi-generators/openapi-python-client/issues/219, and supersedes https://github.com/openapi-generators/openapi-python-client/pull/717. Any valid discriminator definition as described in [OpenAPI 3.1.0](https://spec.openapis.org/oas/v3.1.0.html#discriminator-object) should work correctly with these changes, including: * Discriminators with a `mapping` that...

The last time this idea came up (https://github.com/openapi-generators/openapi-python-client/issues/743), @dbanty felt that there wasn't a compelling reason to switch from `attrs`. I decided anyway to see how much of a lift...

**Describe the bug** `NoneProperty.build` and `FileProperty.build` _do_ have logic to detect if a default other than None was provided for a null property, or if any default was provided for...