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

Fix Container recursion into additionalProperties #90

Merged
merged 5 commits into from
Oct 16, 2022
Merged

Fix Container recursion into additionalProperties #90

merged 5 commits into from
Oct 16, 2022

Conversation

clux
Copy link
Member

@clux clux commented Oct 14, 2022

Fixes #84.

This factors out the part of the recursion that identifies members and starts the recursion again with those members.
This is needed because there are really two ways we can dig into properties:

  • through properties
  • through additionalProperties

We already have known its properties XOR additionalProperties, but we only correctly did the recursion of that for the members, not for further structs. This meant that complicated schemas with structs nested within additionalProperties were never fully populated (although their members might have been referenced correctly).

Signed-off-by: clux <sszynrae@gmail.com>
@clux clux linked an issue Oct 14, 2022 that may be closed by this pull request
Signed-off-by: clux <sszynrae@gmail.com>
Signed-off-by: clux <sszynrae@gmail.com>
Signed-off-by: clux <sszynrae@gmail.com>
@clux clux changed the title Fix recursion into additional properties not detecting structs Fix Container recursion into additionalProperties Oct 16, 2022
@clux clux marked this pull request as ready for review October 16, 2022 14:54
@clux clux merged commit 4deade2 into main Oct 16, 2022
@clux clux deleted the role-items branch October 16, 2022 14:54
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.

Missing Struct when generating from CRD
1 participant