FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Release 0.24.3 by knope-bot[bot] · Pull Request #1236 · openapi-generators/openapi-python-client · GitHub

Repository navigation

Release 0.24.3 - #1236

Merged
dbanty merged 1 commit into
mainfrom
knope/release
Mar 31, 2025
Merged

dbanty merged 1 commit into
mainfrom
knope/release

Conversation

knope-bot Bot commented Mar 27, 2025

Copy link
Copy Markdown
Contributor

Important

Merging this pull request will create this release

Features

Adding support for named integer enums

#1214 by @barrybarrette

Adding support for named integer enums via an optional extension, x-enum-varnames.

This extension is added to the schema inline with the enum definition:

"MyEnum": {
    "enum": [
        0,
        1,
        2,
        3,
        4,
        5,
        6,
        99
    ],
    "type": "integer",
    "format": "int32",
    "x-enum-varnames": [
        "Deinstalled",
        "Installed",
        "Upcoming_Site",
        "Lab_Site",
        "Pending_Deinstall",
        "Suspended",
        "Install_In_Progress",
        "Unknown"
    ]
}

The result:

Copy link
Copy Markdown
Contributor

@dbanty any ETA on when this will release?

dbanty enabled auto-merge March 31, 2025 22:40
dbanty added this pull request to the merge queue Mar 31, 2025

dbanty commented Mar 31, 2025

Copy link
Copy Markdown
Collaborator

@dbanty any ETA on when this will release?

Sorry, thought I already queued this!

Merged via the queue into main with commit 808354e Mar 31, 2025
dbanty deleted the knope/release branch March 31, 2025 22:44
micha91 pushed a commit to micha91/openapi-python-client that referenced this pull request May 13, 2025
> [!IMPORTANT]
> Merging this pull request will create this release

## Features

### Adding support for named integer enums

openapi-generators#1214 by @barrybarrette

Adding support for named integer enums via an optional extension,
`x-enum-varnames`.

This extension is added to the schema inline with the `enum` definition:
```
"MyEnum": {
    "enum": [
        0,
        1,
        2,
        3,
        4,
        5,
        6,
        99
    ],
    "type": "integer",
    "format": "int32",
    "x-enum-varnames": [
        "Deinstalled",
        "Installed",
        "Upcoming_Site",
        "Lab_Site",
        "Pending_Deinstall",
        "Suspended",
        "Install_In_Progress",
        "Unknown"
    ]
}
```

The result:

![image](https://github.com/user-attachments/assets/780880b3-2f1f-49be-823b-f9abb713a3e1)

Co-authored-by: knope-bot[bot] <152252888+knope-bot[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL