fix: add is_auto_credential and input_field_name to auto credentials schema

Post-refactor fix: these fields were moved from data/block.py to blocks/_base.py in #12068
This commit is contained in:
Nick Tindle
2026-02-12 16:13:23 -06:00
parent 201ec5aa3a
commit e7705427bb

View File

@@ -309,6 +309,8 @@ class BlockSchema(BaseModel):
"credentials_provider": [config.get("provider", "google")],
"credentials_types": [config.get("type", "oauth2")],
"credentials_scopes": config.get("scopes"),
"is_auto_credential": True,
"input_field_name": info["field_name"],
}
result[kwarg_name] = CredentialsFieldInfo.model_validate(
auto_schema, by_alias=True