Skip to content

Commit

Permalink
fix(typespec): Fix childlist return type to items from results
Browse files Browse the repository at this point in the history
Signed-off-by: Diwank Singh Tomer <[email protected]>
  • Loading branch information
creatorrr committed Oct 5, 2024
1 parent dd70505 commit 63eda8b
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion typespec/common/interfaces.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ interface ChildLimitOffsetPagination<

...PaginationOptions,
): {
results: T[];
items: T[];
};
}

Expand Down
24 changes: 12 additions & 12 deletions typespec/tsp-output/@typespec/openapi3/openapi-0.4.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,12 @@ paths:
schema:
type: object
properties:
results:
items:
type: array
items:
$ref: '#/components/schemas/Docs.Doc'
required:
- results
- items
post:
operationId: AgentDocsRoute_create
description: Create a Doc for this Agent
Expand Down Expand Up @@ -290,12 +290,12 @@ paths:
schema:
type: object
properties:
results:
items:
type: array
items:
$ref: '#/components/schemas/Tasks.Task'
required:
- results
- items
post:
operationId: TasksRoute_create
description: Create a new task
Expand Down Expand Up @@ -434,12 +434,12 @@ paths:
schema:
type: object
properties:
results:
items:
type: array
items:
$ref: '#/components/schemas/Tools.Tool'
required:
- results
- items
post:
operationId: AgentToolsRoute_create
description: Create a new tool for this agent
Expand Down Expand Up @@ -713,7 +713,7 @@ paths:
schema:
type: object
properties:
results:
items:
type: array
items:
type: object
Expand All @@ -725,7 +725,7 @@ paths:
required:
- transitions
required:
- results
- items
/executions/{id}/transitions.stream:
get:
operationId: ExecutionTransitionsStreamRoute_stream
Expand Down Expand Up @@ -1026,12 +1026,12 @@ paths:
schema:
type: object
properties:
results:
items:
type: array
items:
$ref: '#/components/schemas/Executions.Execution'
required:
- results
- items
/users:
get:
operationId: UsersRoute_list
Expand Down Expand Up @@ -1196,12 +1196,12 @@ paths:
schema:
type: object
properties:
results:
items:
type: array
items:
$ref: '#/components/schemas/Docs.Doc'
required:
- results
- items
post:
operationId: UserDocsRoute_create
description: Create a Doc for this User
Expand Down
24 changes: 12 additions & 12 deletions typespec/tsp-output/@typespec/openapi3/openapi-1.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,12 @@ paths:
schema:
type: object
properties:
results:
items:
type: array
items:
$ref: '#/components/schemas/Docs.Doc'
required:
- results
- items
post:
operationId: AgentDocsRoute_create
description: Create a Doc for this Agent
Expand Down Expand Up @@ -290,12 +290,12 @@ paths:
schema:
type: object
properties:
results:
items:
type: array
items:
$ref: '#/components/schemas/Tasks.Task'
required:
- results
- items
post:
operationId: TasksRoute_create
description: Create a new task
Expand Down Expand Up @@ -434,12 +434,12 @@ paths:
schema:
type: object
properties:
results:
items:
type: array
items:
$ref: '#/components/schemas/Tools.Tool'
required:
- results
- items
post:
operationId: AgentToolsRoute_create
description: Create a new tool for this agent
Expand Down Expand Up @@ -713,7 +713,7 @@ paths:
schema:
type: object
properties:
results:
items:
type: array
items:
type: object
Expand All @@ -725,7 +725,7 @@ paths:
required:
- transitions
required:
- results
- items
/executions/{id}/transitions.stream:
get:
operationId: ExecutionTransitionsStreamRoute_stream
Expand Down Expand Up @@ -1026,12 +1026,12 @@ paths:
schema:
type: object
properties:
results:
items:
type: array
items:
$ref: '#/components/schemas/Executions.Execution'
required:
- results
- items
/users:
get:
operationId: UsersRoute_list
Expand Down Expand Up @@ -1196,12 +1196,12 @@ paths:
schema:
type: object
properties:
results:
items:
type: array
items:
$ref: '#/components/schemas/Docs.Doc'
required:
- results
- items
post:
operationId: UserDocsRoute_create
description: Create a Doc for this User
Expand Down

0 comments on commit 63eda8b

Please sign in to comment.