Skip to content

kiterunner kb fails: error="failed to unmarshal param: json: ...  #56

@zrthstr

Description

@zrthstr

Any idea what is causing this bug and how to fix it?

% ./kr version -q
1.0.2 - e7a7fa6
Built on 2021-04-11T09:51:54Z

% ./kr kb -v debug -q compile routes-small.json testd.kite
6:01AM DBG custom log settings format=pretty
6:01AM DBG beginning slow load of json bytes
6:02AM DBG  Context=root.[].v ID=root Method= Route=
6:02AM DBG      Context=api.paths.operations.parameters ID=0cc39f6e72c06b91fbe278994d5ec9f40c67eece Method=post Route=/onos/vtn/subnets
6:02AM DBG          error="failed to unmarshal param: json: cannot unmarshal array into Go struct field Parameter.schema of type kitebuilder.Schema" Context=param.[].v ID= JSON={"in":"body","name":"input","required":true,"schema":[]} Method= Route=
6:02AM DBG      Context=api.paths.operations.parameters ID=0cc39f6e72c06b91fbe278994d5ec9f40c67eece Method=post Route=/onos/vtn/routers
6:02AM DBG          error="failed to unmarshal param: json: cannot unmarshal array into Go struct field Parameter.schema of
p type kitebuilder.Schema" Context=param.[].v ID= JSON={"in":"body","name":"input","required":true,"schema":[]} Method= Route=
[...]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions