Skip to content

Commit bafccc1

Browse files
committed
2 parents 4dc0bb4 + e766e4e commit bafccc1

File tree

1 file changed

+103
-98
lines changed

1 file changed

+103
-98
lines changed

schema/workflow.yaml

Lines changed: 103 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -284,55 +284,57 @@ $defs:
284284
type: object
285285
unevaluatedProperties: false
286286
required: [ call, with ]
287-
properties:
288-
call:
289-
type: string
290-
const: grpc
291-
with:
292-
type: object
293-
title: GRPCArguments
294-
description: The GRPC call arguments.
295-
properties:
296-
proto:
297-
$ref: '#/$defs/externalResource'
298-
title: WithGRPCProto
299-
description: The proto resource that describes the GRPC service to call.
300-
service:
301-
type: object
302-
title: WithGRPCService
303-
unevaluatedProperties: false
304-
properties:
305-
name:
306-
type: string
307-
title: WithGRPCServiceName
308-
description: The name of the GRPC service to call.
309-
host:
310-
type: string
311-
title: WithGRPCServiceHost
312-
description: The hostname of the GRPC service to call.
313-
pattern: ^[a-zA-Z0-9](?:[a-zA-Z0-9-.]{0,61}[a-zA-Z0-9])?$
314-
port:
315-
type: integer
316-
title: WithGRPCServicePort
317-
description: The port number of the GRPC service to call.
318-
minimum: 0
319-
maximum: 65535
320-
authentication:
321-
$ref: '#/$defs/referenceableAuthenticationPolicy'
322-
title: WithGRPCServiceAuthentication
323-
description: The endpoint's authentication policy, if any.
324-
required: [ name, host ]
325-
method:
326-
type: string
327-
title: WithGRPCMethod
328-
description: The name of the method to call on the defined GRPC service.
329-
arguments:
330-
type: object
331-
title: WithGRPCArguments
332-
description: The arguments, if any, to call the method with.
333-
additionalProperties: true
334-
required: [ proto, service, method ]
335-
unevaluatedProperties: false
287+
allOf:
288+
- $ref: '#/$defs/taskBase'
289+
- properties:
290+
call:
291+
type: string
292+
const: grpc
293+
with:
294+
type: object
295+
title: GRPCArguments
296+
description: The GRPC call arguments.
297+
properties:
298+
proto:
299+
$ref: '#/$defs/externalResource'
300+
title: WithGRPCProto
301+
description: The proto resource that describes the GRPC service to call.
302+
service:
303+
type: object
304+
title: WithGRPCService
305+
unevaluatedProperties: false
306+
properties:
307+
name:
308+
type: string
309+
title: WithGRPCServiceName
310+
description: The name of the GRPC service to call.
311+
host:
312+
type: string
313+
title: WithGRPCServiceHost
314+
description: The hostname of the GRPC service to call.
315+
pattern: ^[a-zA-Z0-9](?:[a-zA-Z0-9-.]{0,61}[a-zA-Z0-9])?$
316+
port:
317+
type: integer
318+
title: WithGRPCServicePort
319+
description: The port number of the GRPC service to call.
320+
minimum: 0
321+
maximum: 65535
322+
authentication:
323+
$ref: '#/$defs/referenceableAuthenticationPolicy'
324+
title: WithGRPCServiceAuthentication
325+
description: The endpoint's authentication policy, if any.
326+
required: [ name, host ]
327+
method:
328+
type: string
329+
title: WithGRPCMethod
330+
description: The name of the method to call on the defined GRPC service.
331+
arguments:
332+
type: object
333+
title: WithGRPCArguments
334+
description: The arguments, if any, to call the method with.
335+
additionalProperties: true
336+
required: [ proto, service, method ]
337+
unevaluatedProperties: false
336338
- title: CallHTTP
337339
description: Defines the HTTP call to perform.
338340
type: object
@@ -393,46 +395,47 @@ $defs:
393395
type: object
394396
unevaluatedProperties: false
395397
required: [ call, with ]
396-
properties:
397-
call:
398-
type: string
399-
const: openapi
400-
with:
401-
type: object
402-
title: OpenAPIArguments
403-
description: The OpenAPI call arguments.
404-
properties:
405-
document:
406-
$ref: '#/$defs/externalResource'
407-
title: WithOpenAPIDocument
408-
description: The document that defines the OpenAPI operation to call.
409-
operationId:
410-
type: string
411-
title: WithOpenAPIOperation
412-
description: The id of the OpenAPI operation to call.
413-
parameters:
414-
type: object
415-
title: WithOpenAPIParameters
416-
description: A name/value mapping of the parameters of the OpenAPI operation to call.
417-
additionalProperties: true
418-
authentication:
419-
$ref: '#/$defs/referenceableAuthenticationPolicy'
420-
title: WithOpenAPIAuthentication
421-
description: The authentication policy, if any, to use when calling the OpenAPI operation.
422-
output:
423-
type: string
424-
enum: [ raw, content, response ]
425-
title: WithOpenAPIOutput
426-
description: The http call output format. Defaults to 'content'.
427-
redirect:
428-
type: boolean
429-
title: HttpRedirect
430-
description: Specifies whether redirection status codes (`300–399`) should be treated as errors.
431-
required: [ document, operationId ]
432-
unevaluatedProperties: false
398+
allOf:
399+
- $ref: '#/$defs/taskBase'
400+
- properties:
401+
call:
402+
type: string
403+
const: openapi
404+
with:
405+
type: object
406+
title: OpenAPIArguments
407+
description: The OpenAPI call arguments.
408+
properties:
409+
document:
410+
$ref: '#/$defs/externalResource'
411+
title: WithOpenAPIDocument
412+
description: The document that defines the OpenAPI operation to call.
413+
operationId:
414+
type: string
415+
title: WithOpenAPIOperation
416+
description: The id of the OpenAPI operation to call.
417+
parameters:
418+
type: object
419+
title: WithOpenAPIParameters
420+
description: A name/value mapping of the parameters of the OpenAPI operation to call.
421+
additionalProperties: true
422+
authentication:
423+
$ref: '#/$defs/referenceableAuthenticationPolicy'
424+
title: WithOpenAPIAuthentication
425+
description: The authentication policy, if any, to use when calling the OpenAPI operation.
426+
output:
427+
type: string
428+
enum: [ raw, content, response ]
429+
title: WithOpenAPIOutput
430+
description: The http call output format. Defaults to 'content'.
431+
redirect:
432+
type: boolean
433+
title: HttpRedirect
434+
description: Specifies whether redirection status codes (`300–399`) should be treated as errors.
435+
required: [ document, operationId ]
436+
unevaluatedProperties: false
433437
- title: CallA2A
434438
description: Defines the A2A call to perform.
435-
$ref: '#/$defs/taskBase'
436439
type: object
437440
unevaluatedProperties: false
438441
required: [ call, with ]
@@ -510,17 +513,19 @@ $defs:
510513
type: object
511514
unevaluatedProperties: false
512515
required: [ call ]
513-
properties:
514-
call:
515-
type: string
516-
not:
517-
enum: ["asyncapi", "grpc", "http", "openapi", "a2a"]
518-
description: The name of the function to call.
519-
with:
520-
type: object
521-
title: FunctionArguments
522-
description: A name/value mapping of the parameters, if any, to call the function with.
523-
additionalProperties: true
516+
allOf:
517+
- $ref: '#/$defs/taskBase'
518+
- properties:
519+
call:
520+
type: string
521+
not:
522+
enum: ["asyncapi", "grpc", "http", "openapi", "a2a"]
523+
description: The name of the function to call.
524+
with:
525+
type: object
526+
title: FunctionArguments
527+
description: A name/value mapping of the parameters, if any, to call the function with.
528+
additionalProperties: true
524529
forkTask:
525530
type: object
526531
title: ForkTask

0 commit comments

Comments
 (0)