Skip to content

Add the deprecated attribute to Endpoint class#1413

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

Add the deprecated attribute to Endpoint class#1413
nimeshnayaju wants to merge 1 commit intoopenapi-generators:mainfrom
nimeshnayaju:main

Conversation

@nimeshnayaju
Copy link

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

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