aws-cloudformation / aws-cloudformation/cloudformation-cli-go-plugin

cfn test returned model mismatch

Open
#236 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
53
Forks
31
PR merge metrics
No merged PRs in 30d

Description

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

```shell
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:

```json
{
"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`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.