Skip to content

[WIP] Notes on providing extensibility on CoRIM and CoMID

Yogesh Deshpande edited this page Sep 13, 2023 · 2 revisions

Handling CoRIM and CoMID Extension Points

Various types of extension to base CoRIM/CoMID schema

  1. Type extension via a type-choice

The base CoRIM and CoMID defines a set of types for the element. The type is extensible and hence a new possible type can be added to the set. Alternatively, for a specific implementation (via profile) the extension can reduce the scope of the type, meaning a sub-set of types can be allowed by the element.

  1. Structure extension. In golang CDDL Maps are implemented using structures.

The Veraison base CoRIM and CoMID packages defines the native structure.

A new element which can be a composite element (like structure)

Options for Extensions

Option - 1

Handling extensions for basic data type

  • Modify the data type to interface to handle extensibility ( if not already defined as an interface)