You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add source config fields (allowed_http_methods, custom_response) to connection create/upsert
- Add --source-allowed-http-methods flag (comma-separated: GET,POST,PUT,PATCH,DELETE)
- Add --source-custom-response-content-type flag (json, text, xml)
- Add --source-custom-response-body flag (max 1000 chars)
- Update buildSourceConfig() with validation for new fields
- Fix hasAnySourceFlag() to detect all source config flags
- Fix needsExisting logic to detect source config-only updates
- Add buildSourceInputForUpdate() for proper config merging during upsert
- Add 23 unit tests in connection_source_config_test.go
- Add 6 acceptance tests covering create and upsert scenarios
- Update REFERENCE.md with documentation and examples
cc.cmd.Flags().StringVar(&cc.SourceAllowedHTTPMethods, "source-allowed-http-methods", "", "Comma-separated list of allowed HTTP methods (GET, POST, PUT, PATCH, DELETE)")
180
+
cc.cmd.Flags().StringVar(&cc.SourceCustomResponseType, "source-custom-response-content-type", "", "Custom response content type (json, text, xml)")
181
+
cc.cmd.Flags().StringVar(&cc.SourceCustomResponseBody, "source-custom-response-body", "", "Custom response body (max 1000 chars)")
182
+
164
183
// JSON config fallback
165
184
cc.cmd.Flags().StringVar(&cc.SourceConfig, "source-config", "", "JSON string for source authentication config")
166
185
cc.cmd.Flags().StringVar(&cc.SourceConfigFile, "source-config-file", "", "Path to a JSON file for source authentication config")
0 commit comments