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

Add the `deprecated` attribute to `Endpoint` class by nimeshnayaju · Pull Request #1413 · openapi-generators/openapi-python-client · GitHub

Repository navigation

Add the deprecated attribute to Endpoint class - #1413

Open
nimeshnayaju wants to merge 1 commit into
openapi-generators:mainfrom
nimeshnayaju:main
Open

nimeshnayaju wants to merge 1 commit into
openapi-generators:mainfrom
nimeshnayaju:main

Conversation

Copy link
Copy Markdown

Currently, the deprecated field from the OpenAPI schema's Operation is not passed through to the Endpoint dataclass that templates use. The Operation schema does parse it (operation.py#31), but the Endpoint dataclass (openapi.py#L132-L152) doesn't include it, and it's not set during construction. This PR adds this field to the Endpoint class.

Fixes #1412

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.

The deprecated field from OpenAPI operations is parsed but not exposed to templates

1 participant


Back | FazBrowse Home | New Git URL