Skip to content

cfn test returned model mismatch #236

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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