ENV, Input, Outpu Expose, Container change of rules

This commit is contained in:
mr
2026-04-02 14:31:19 +02:00
parent 2bc4555793
commit a2f6f3c252
9 changed files with 41 additions and 135 deletions

View File

@@ -52,15 +52,6 @@ type ProcessingInstance struct {
ContentType string `json:"content_type,omitempty" bson:"content_type,omitempty"`
}
func (ri *ProcessingInstance) StoreDraftDefault() {
// Enforce peerless invariant: a public-origin instance cannot have peer ownership.
if ri.Origin.Ref != "" && (ri.CreatorID != "" || len(ri.Partnerships) > 0) {
ri.CreatorID = ""
ri.Partnerships = nil
}
ri.ResourceInstance.StoreDraftDefault()
}
func NewProcessingInstance(name string, peerID string) ResourceInstanceITF {
return &ProcessingInstance{
ResourceInstance: ResourceInstance[*ResourcePartnerShip[*ProcessingResourcePricingProfile]]{