Skip to content

Conversation

@jakobmoellerdev
Copy link
Member

What this PR does / why we need it

this is a fix for a common issue in decoding descriptors that have "null" values set in the JSON which was previously rejected. as this is semantically equivalent to empty slices we want to allow this.

Which issue(s) this PR is related to

part of open-component-model/ocm-project#680 as I noticed that null values are serialized normally but cannot be deserialized correctly

@github-actions github-actions bot added kind/bugfix Bug size/s Small component/ocm-spec Open Component Model Specification and removed kind/bugfix Bug size/s Small labels Oct 14, 2025
@jakobmoellerdev jakobmoellerdev force-pushed the allow-null-semantic-values-in-v2-desc branch from 6233fb4 to f0fad3b Compare October 14, 2025 09:13
@jakobmoellerdev jakobmoellerdev force-pushed the allow-null-semantic-values-in-v2-desc branch from f0fad3b to d319e66 Compare October 14, 2025 09:20
@jakobmoellerdev jakobmoellerdev marked this pull request as ready for review October 14, 2025 11:44
@jakobmoellerdev jakobmoellerdev requested a review from a team as a code owner October 14, 2025 11:44
…descriptor V2

this is a fix for a common issue in decoding descriptors that have "null" values set in the JSON which was previously rejected. as this is semantically equivalent to empty slices we want to allow this.

Signed-off-by: Jakob Möller <jakob.moeller@sap.com>
@jakobmoellerdev jakobmoellerdev force-pushed the allow-null-semantic-values-in-v2-desc branch from d319e66 to 367b907 Compare October 15, 2025 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/ocm-spec Open Component Model Specification kind/bugfix Bug size/s Small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants