这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@danielgtaylor
Copy link
Owner

This PR ports v1 logic for getting all fields from all embedded objects in a breadth first search, taking care to keep track of the field's parent as these are used in v2 for naming hints.

The schema generator had good coverage but didn't have a specific test for this scenario, so thanks for pointing it out! There is a test now to ensure this works as expected, including field overrides.

Fixes #113.

@danielgtaylor danielgtaylor merged commit c456388 into main Aug 31, 2023
@danielgtaylor danielgtaylor deleted the fix-embedded-structs branch August 31, 2023 04:29
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.

V2: Embedded structs are not inlined in the OpenAPI Spec

2 participants