Closed thomas-fossati closed 3 years ago
I think this is trending to be an alternate proposal than to what is proposed in issue #51. There is concern over whether extensibility is achieved the best way. We need to see a concrete proposal so that these can be discussed and compared in context.
While working on the PSA profile, one thing that doesn't feel right is that when extending ref-vals / endorsements values, one ends up extending the whole ref-val/endorsement map rather than just the element value -- which would seem to be the right granularity. Now:
element-value
does not have an extension point, but even it had one, extendingelement-value
with new endorsements types would have a polluting effect in that the endorsement-specific extensions would automatically percolate into the ref-val space and viceversa. Which makes me wonder whether we got the type system slightly wrong here? Wouldn't it be better instead of a sharedelement-value
to have separate (and extensible)endorsement-value
andref-val-value
inside the endorsement and ref-val maps respectively? ISTM that this approach would give us the granularity and isolation which the current type system lacks.