Skip to content

cfn test returned model mismatch #236

Open
@Nr18

Description

@Nr18

Hi, I am trying to create a cfn resource type in go. But the contract tests are failing on the following:

E    Request Model : {'MyBoolean': False, 'MyInteger': 10}
E    Returned Model : {'MyBoolean': 'false', 'MyInteger': '10'}
E    Value for property MyBoolean in Request Model(False) and Response Model(false) does not match

In the returned model the values are strings while the input is a boolean and an integer....

They are defined as:

{
    "properties": {
        "MyBoolean": {
            "description": "My description",
            "type": "boolean"
        },
        "MyInteger": {
            "description": "My description",
            "type": "integer"
        }
    }
}

Am I doing something wrong here? I am using cfn v0.2.32

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