losisin / helm-values-schema-json

Helm plugin for generating values.schema.json from multiple values files
MIT License
75 stars 11 forks source link

Set Items type in array with schema annotation #49

Closed losisin closed 8 months ago

losisin commented 8 months ago

Current behaviour is to read Items type only when array is not empty recursively from go types. Now it is possible to set Items type with schema annotation in comment. Useful when array is empty but want to control the types accepted in array.

closes #48

codecov[bot] commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 98.78%. Comparing base (aefd9ff) to head (a6bc339). Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #49 +/- ## ========================================== + Coverage 98.77% 98.78% +0.01% ========================================== Files 6 6 Lines 325 328 +3 ========================================== + Hits 321 324 +3 Misses 2 2 Partials 2 2 ``` | [Flag](https://app.codecov.io/gh/losisin/helm-values-schema-json/pull/49/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Aleksandar+Stojanov) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/losisin/helm-values-schema-json/pull/49/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Aleksandar+Stojanov) | `98.78% <100.00%> (+0.01%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Aleksandar+Stojanov#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.