ci: regenerated with OpenAPI Doc 0.0.3, Speakeasy CLI 1.227.0

This commit is contained in:
speakeasybot
2024-03-27 00:44:22 +00:00
parent 683823eab9
commit f3eb760757
7 changed files with 28 additions and 14 deletions

View File

@@ -10,7 +10,7 @@ import (
"strings"
)
func PopulateHeaders(ctx context.Context, req *http.Request, headers interface{}) {
func PopulateHeaders(ctx context.Context, req *http.Request, headers interface{}, globals map[string]map[string]map[string]interface{}) {
headerParamsStructType := reflect.TypeOf(headers)
headerParamsValType := reflect.ValueOf(headers)
@@ -18,6 +18,8 @@ func PopulateHeaders(ctx context.Context, req *http.Request, headers interface{}
fieldType := headerParamsStructType.Field(i)
valType := headerParamsValType.Field(i)
valType = populateFromGlobals(fieldType, valType, "header", globals)
tag := parseParamTag(headerParamTagKey, fieldType, "simple", false)
if tag == nil {
continue