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

Make sure array Helm values always get an items field in OpenAPI schema #1465

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

gcapizzi
Copy link
Contributor

What this PR does / why we need it:

The items field in OpenAPI schema is required. This makes sure that we always add it, even if the default value is an empty array.

Which issue(s) this PR fixes:

Fixes #1464.

Does this PR introduce a user-facing change?

`kctrl`: array Helm values now always get an `items` field in OpenAPI.

Additional Notes for your reviewer:

Review Checklist:
  • Follows the developer guidelines
  • Relevant tests are added or updated
  • Relevant docs in this repo added or updated
  • Relevant carvel.dev docs added or updated in a separate PR and there's a link to that PR
  • Code is at least as readable and maintainable as it was before this change

@gcapizzi gcapizzi changed the title Make sure array Helm values always get an items field in OpenAPI schema Make sure array Helm values always get an items field in OpenAPI schema Jan 25, 2024
The `items` field in OpenAPI schema is required, this makes sure that we
always add it, even if the default value is an empty array.

Fixes carvel-dev#1464.

Signed-off-by: Giuseppe Capizzi <[email protected]>
@gcapizzi gcapizzi force-pushed the fix-empty-array-items branch from 0b5dccb to 2c641ad Compare January 25, 2024 15:57
Copy link
Member

@joaopapereira joaopapereira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@joaopapereira joaopapereira merged commit 7b7d396 into carvel-dev:develop Jan 25, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

kctrl: Helm array values with an empty default should still get an items field in their OpenAPI schema
2 participants