add conversation components to component metadata schema and bundle (#3882)

Signed-off-by: Fabian Martinez <46371672+famarting@users.noreply.github.com>
This commit is contained in:
Fabian Martinez 2025-07-11 15:20:24 +02:00 committed by GitHub
parent 5da0c71149
commit e72dbb6c07
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 8 additions and 5 deletions

View File

@ -9,6 +9,7 @@ componentFolders:
- secretstores
- state
- workflows
- conversation
excludeFolders:
- bindings/alicloud

View File

@ -20,7 +20,7 @@ type ComponentMetadata struct {
// Version of the component metadata schema.
SchemaVersion string `json:"schemaVersion" yaml:"schemaVersion" jsonschema:"enum=v1"`
// Component type, of one of the allowed values.
Type string `json:"type" yaml:"type" jsonschema:"enum=bindings,enum=state,enum=secretstores,enum=pubsub,enum=workflows,enum=configuration,enum=lock,enum=middleware,enum=crypto"`
Type string `json:"type" yaml:"type" jsonschema:"enum=bindings,enum=state,enum=secretstores,enum=pubsub,enum=workflows,enum=configuration,enum=lock,enum=middleware,enum=crypto,enum=conversation"`
// Name of the component (without the inital type, e.g. "http" instead of "bindings.http").
Name string `json:"name" yaml:"name"`
// Version of the component, with the leading "v", e.g. "v1".

View File

@ -213,7 +213,8 @@
"configuration",
"lock",
"middleware",
"crypto"
"crypto",
"conversation"
],
"description": "Component type, of one of the allowed values."
},

View File

@ -25,5 +25,5 @@ metadata:
required: false
description: |
Max tokens for each request
type: int
example: 2048
type: number
example: "2048"

View File

@ -168,7 +168,8 @@ func (t ComponentType) IsValid() bool {
SecretStoreType, PubSubType,
LockStoreType, ConfigurationStoreType,
MiddlewareType, CryptoType,
NameResolutionType, WorkflowType:
NameResolutionType, WorkflowType,
ConversationType:
return true
default:
return false