Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cfn test returned model mismatch #236

Open
Nr18 opened this issue Mar 1, 2024 · 0 comments
Open

cfn test returned model mismatch #236

Nr18 opened this issue Mar 1, 2024 · 0 comments

Comments

@Nr18
Copy link

Nr18 commented Mar 1, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant