-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
Milestone
Description
Description
Validation for TypeInstances was implemented in Argo actions and CLI (https://github.com/capactio/capact/pull/629/files). This doesn't solve the problem when someone will submit it via GraphQL (e.g. via UI). We should move validation logic directly to Local Hub. As a result, we will have a single entry point where this will be validated no matter who/what sent the TypeInstance.
To make this work, we need to add information to Local Hub with which Public Hub it should work. As a result, we can also validate whether created TypeInstance refers to existing TypeRef.
Reason
Validate TypeInstance no matter who sends it.