Skip to content

Commit 665b8bb

Browse files
feat: Neil/kernel 873 templates v4
1 parent 59e8ce0 commit 665b8bb

2 files changed

Lines changed: 13 additions & 5 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 100
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-47ee6a2b624baddb41a681feff758bf1893cd3d65edf3ab51219ebe4d942932b.yml
3-
openapi_spec_hash: 76178c41ede593e76bfacb176057d2f0
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-2b77b2efd4d25aaa264cbd6fcb0e43f82d14ce5a4bd6fb1e3859be440868685a.yml
3+
openapi_spec_hash: 299be31ecb4a96dcd54d4d902a716e68
44
config_hash: 27c0ea01aeb797a1767af139851c5b66

shared/shared.go

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,19 @@ type paramObj = param.APIObject
2222
type AppAction struct {
2323
// Name of the action
2424
Name string `json:"name,required"`
25+
// JSON Schema (draft-07) describing the expected input payload. Null if schema
26+
// could not be automatically generated.
27+
InputSchema map[string]any `json:"input_schema,nullable"`
28+
// JSON Schema (draft-07) describing the expected output payload. Null if schema
29+
// could not be automatically generated.
30+
OutputSchema map[string]any `json:"output_schema,nullable"`
2531
// JSON contains metadata for fields, check presence with [respjson.Field.Valid].
2632
JSON struct {
27-
Name respjson.Field
28-
ExtraFields map[string]respjson.Field
29-
raw string
33+
Name respjson.Field
34+
InputSchema respjson.Field
35+
OutputSchema respjson.Field
36+
ExtraFields map[string]respjson.Field
37+
raw string
3038
} `json:"-"`
3139
}
3240

0 commit comments

Comments
 (0)