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

NCSDK-30807: Add support passing integer values as content #158

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion suit_generator/suit/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,12 @@ class SuitParameterInvokeArgs(SuitKeyValue):
)


class SuitParameterContent(SuitUnion):
"""Abstract element to define possible sub-elements."""

_metadata = Metadata(children=[cbstr(SuitUint), SuitBstr])


class SuitParameters(SuitKeyValue):
"""Representation of SUIT parameters."""

Expand All @@ -290,7 +296,7 @@ class SuitParameters(SuitKeyValue):
suit_parameter_strict_order: SuitBool,
suit_parameter_soft_failure: SuitBool,
suit_parameter_image_size: SuitImageSize,
suit_parameter_content: SuitBstr,
suit_parameter_content: SuitParameterContent,
suit_parameter_encryption_info: SuitEncryptionInfo,
suit_parameter_uri: SuitTstr,
suit_parameter_source_component: SuitUint,
Expand Down
Loading