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

[Question] Property case?

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

Description

To avoid a lot of copying due to downstream requirements my model uses two properties that begin with lower case letters and gets these two messages from `validate`
```
CloudFormation properties don't usually start with lowercase letters: key
CloudFormation properties don't usually start with lowercase letters: values
```

My contract tests fail in `resource_client.py` with (my logging)
```
WARNING rpdk.core.contract.resource_client:resource_client.py:431 compare_collection: inputs: [{'Key': 'Key1', 'Values': ['Key1-Value1', 'Key1-Value2']}]
WARNING rpdk.core.contract.resource_client:resource_client.py:432 compare_collection: outputs: [{'key': 'Key1', 'values': ['Key1-Value1', 'Key1-Value2']}]
```
With what I'm guessing is a mismatch on the key case difference.

Are properties required to begin with an upper case letter? If so shouldn't `validate` fail? If not then what is changing the key case? (If lower case is valid the Go model generator should note this in the `json` tag).

Thanks.

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.