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:
parent
5da0c71149
commit
e72dbb6c07
|
|
@ -9,6 +9,7 @@ componentFolders:
|
|||
- secretstores
|
||||
- state
|
||||
- workflows
|
||||
- conversation
|
||||
|
||||
excludeFolders:
|
||||
- bindings/alicloud
|
||||
|
|
|
|||
|
|
@ -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".
|
||||
|
|
|
|||
|
|
@ -213,7 +213,8 @@
|
|||
"configuration",
|
||||
"lock",
|
||||
"middleware",
|
||||
"crypto"
|
||||
"crypto",
|
||||
"conversation"
|
||||
],
|
||||
"description": "Component type, of one of the allowed values."
|
||||
},
|
||||
|
|
|
|||
|
|
@ -25,5 +25,5 @@ metadata:
|
|||
required: false
|
||||
description: |
|
||||
Max tokens for each request
|
||||
type: int
|
||||
example: 2048
|
||||
type: number
|
||||
example: "2048"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue