You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For convenience we need a single "directory" of all the providers existing in our system. ProviderName fills that gap.
Defining a credentials input currently requires defining the provider and credential type(s) both on CredentialsMetaInput and CredentialsField. For better DX, this redundancy should be removed, but without compromising schema generation and data validation.
The text was updated successfully, but these errors were encountered:
…ame` globally (#8725)
- Resolves#8931
- Follow-up to #8358
### Changes 🏗️
- Avoid double specifying provider and cred types on `credentials`
inputs
- Move `credentials` sub-schema validation from `CredentialsField` to
`CredentialsMetaInput.validate_credentials_field_schema(..)`, which is
called in `BlockSchema.__pydantic_init_subclass__`
- Use `ProviderName` enum globally
Outline
ProviderName
fills that gap.credentials
input currently requires defining the provider and credential type(s) both onCredentialsMetaInput
andCredentialsField
. For better DX, this redundancy should be removed, but without compromising schema generation and data validation.The text was updated successfully, but these errors were encountered: