mirror of https://github.com/knative/func.git
chore: better JSON Schema (#1968)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
This commit is contained in:
parent
68f357561b
commit
4cbba4a8de
|
@ -77,7 +77,7 @@ type Function struct {
|
|||
|
||||
// Invoke defines hints for use when invoking this function.
|
||||
// See Client.Invoke for usage.
|
||||
Invoke string `yaml:"invoke,omitempty"`
|
||||
Invoke string `yaml:"invoke,omitempty" jsonschema:"enum=http,enum=cloudevent"`
|
||||
|
||||
// Build defines the build properties for a function
|
||||
Build BuildSpec `yaml:"build,omitempty"`
|
||||
|
|
|
@ -164,6 +164,10 @@
|
|||
"format": "date-time"
|
||||
},
|
||||
"invoke": {
|
||||
"enum": [
|
||||
"http",
|
||||
"cloudevent"
|
||||
],
|
||||
"type": "string",
|
||||
"description": "Invoke defines hints for use when invoking this function.\nSee Client.Invoke for usage."
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue