Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Golang implementation of /api/1.1/parameters POST can't handle arrays #3093

@ocket8888

Description

@ocket8888

The route at /api/1.1/parameters in Perl used to accept either a single parameter e.g.

{
	"name": "test",
	"value": "quest",
	"configFile": "records.config",
	"secure": false
}

or an array of such objects e.g.

[
	{
		"name": "test",
		"value": "quest",
		"configFile": "records.config",
		"secure": false
	},
	{
		"name": "foo",
		"value": "bar",
		"configFile": "records.config",
		"secure": false
	}
]

but the ability to handle the second case was lost in the translation to Go.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Traffic Opsrelated to Traffic Opsregression buga bug in existing functionality introduced by a new version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions