How can I "disable"/"deactivate" a type?

#1

Let’s say I have one or more types that I want to disable.
Is there any way to mark the type, perhaps an annotation, that can tell the type system to disregard the type?
Specifically, I have a transformation I want to disable/enable, without deleting the c3 Type itself.

0 Likes

#2

For canonical transform types, you can just add a canonical transform annotation condition expression that always resolves to false.

e.g.

@canonicalTransform(condition='false')
type TransformAToB ...
1 Like

#3

For other types you can use the Deprecated annotation:

c3ShowType('Ext.Deprecated')
0 Likes

#4

Yes, you can mark any type as @deprecated, but that is informational only and affects neither the presence nor the functionality of the type.

0 Likes

#5

I need to disable the functionality itself

0 Likes