Skip to content

Commit 95d5f72

Browse files
Copilotintel352
andcommitted
Fix schema config field keys to use snake_case matching the factory
Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>
1 parent ef06848 commit 95d5f72

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

schema/module_schema.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -957,9 +957,9 @@ func (r *ModuleSchemaRegistry) registerBuiltins() {
957957
Inputs: []ServiceIODef{{Name: "context", Type: "PipelineContext", Description: "Pipeline context with _http_request and _http_response_writer metadata"}},
958958
Outputs: []ServiceIODef{{Name: "result", Type: "StepResult", Description: "Proxy response status and target URL; Stop is always true"}},
959959
ConfigFields: []ConfigFieldDef{
960-
{Key: "backendUrlKey", Label: "Backend URL Key", Type: FieldTypeString, DefaultValue: "backend_url", Description: "Dot-path in pc.Current for the backend URL (e.g. backend_url or steps.resolve.url)"},
961-
{Key: "resourceKey", Label: "Resource Key", Type: FieldTypeString, DefaultValue: "path_params.resource", Description: "Dot-path in pc.Current for the resource path suffix"},
962-
{Key: "forwardHeaders", Label: "Forward Headers", Type: FieldTypeArray, ArrayItemType: "string", Description: "Header names to copy from the original request to the proxy request"},
960+
{Key: "backend_url_key", Label: "Backend URL Key", Type: FieldTypeString, DefaultValue: "backend_url", Description: "Dot-path in pc.Current for the backend URL (e.g. backend_url or steps.resolve.url)"},
961+
{Key: "resource_key", Label: "Resource Key", Type: FieldTypeString, DefaultValue: "path_params.resource", Description: "Dot-path in pc.Current for the resource path suffix"},
962+
{Key: "forward_headers", Label: "Forward Headers", Type: FieldTypeArray, ArrayItemType: "string", Description: "Header names to copy from the original request to the proxy request"},
963963
{Key: "timeout", Label: "Timeout", Type: FieldTypeString, DefaultValue: "30s", Description: "Proxy request timeout duration", Placeholder: "30s"},
964964
},
965965
})

0 commit comments

Comments
 (0)