Skip to content
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

How do you use aliases with nested objects #1131

Open
Marclev78 opened this issue Apr 17, 2024 · 0 comments
Open

How do you use aliases with nested objects #1131

Marclev78 opened this issue Apr 17, 2024 · 0 comments

Comments

@Marclev78
Copy link

Marclev78 commented Apr 17, 2024

The documentation on aliases only covers how to use these with native types, for example:

completed: bool = Field(..., alias="is_completed")

But I have a nested object that I want to create an alias for, for example:

self_: RelatedResourceReference = Field(..., alias="self")

I'm struggling to get this to work since I can't see how to do it from the documentation.

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

No branches or pull requests

1 participant