feat: avoid safe options to be serialized into the measurement (#859)
Skip options that begin with the `Safe` prefix from appearing in the serialization of a Measurement that will be submitted to the OONI backend. Fixes https://github.com/ooni/probe/issues/2214
This commit is contained in:
parent
2083edb258
commit
d50a39ae92
3 changed files with 57 additions and 2 deletions
|
|
@ -46,7 +46,10 @@ type v2Nettest struct {
|
|||
// Inputs contains inputs for the experiment.
|
||||
Inputs []string `json:"inputs"`
|
||||
|
||||
// Options contains the experiment options.
|
||||
// Options contains the experiment options. Any option name starting with
|
||||
// `Safe` will be available for the experiment run, but omitted from
|
||||
// the serialized Measurement that the experiment builder will submit
|
||||
// to the OONI backend.
|
||||
Options map[string]any `json:"options"`
|
||||
|
||||
// TestName contains the nettest name.
|
||||
|
|
|
|||
Loading…
Reference in a new issue