Skip to content

Commit 085b96f

Browse files
authored
Breaking change to fix JSONValue usage for CloudWatch Evidently. (#4415)
Introduces a breaking change for following parameters from a JSONValue to string type, because the SDKs JSONValue is not compatible with the service's request and response shapes. EvaluateFeatureInput.EvaluationContext EvaluateFeatureOutput.Details EvaluationRequest.EvaluationContext EvaluationResult.Details Event.Data ExperimentReport.Content MetricDefinition.EventPattern MetricDefinitionConfig.EventPattern
1 parent 6891065 commit 085b96f

File tree

3 files changed

+33
-74
lines changed

3 files changed

+33
-74
lines changed

CHANGELOG_PENDING.md

+9
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,12 @@
33
### SDK Enhancements
44

55
### SDK Bugs
6+
* `service/cloudwatchevidently`: Introduces a breaking change for following parameters from a JSONValue to string type, because the SDKs JSONValue is not compatible with the service's request and response shapes.
7+
* `EvaluateFeatureInput.EvaluationContext`
8+
* `EvaluateFeatureOutput.Details`
9+
* `EvaluationRequest.EvaluationContext`
10+
* `EvaluationResult.Details`
11+
* `Event.Data`
12+
* `ExperimentReport.Content`
13+
* `MetricDefinition.EventPattern`
14+
* `MetricDefinitionConfig.EventPattern`

private/model/api/legacy_jsonvalue.go

-50
Original file line numberDiff line numberDiff line change
@@ -32,56 +32,6 @@ var legacyJSONValueShapes = map[string]map[string]legacyJSONValues{
3232
},
3333
},
3434
},
35-
"cloudwatchevidently": map[string]legacyJSONValues{
36-
"EvaluateFeatureRequest": legacyJSONValues{
37-
Type: "structure",
38-
StructMembers: map[string]struct{}{
39-
"evaluationContext": struct{}{},
40-
},
41-
},
42-
"EvaluateFeatureResponse": legacyJSONValues{
43-
Type: "structure",
44-
StructMembers: map[string]struct{}{
45-
"details": struct{}{},
46-
},
47-
},
48-
"EvaluationRequest": legacyJSONValues{
49-
Type: "structure",
50-
StructMembers: map[string]struct{}{
51-
"evaluationContext": struct{}{},
52-
},
53-
},
54-
"EvaluationResult": legacyJSONValues{
55-
Type: "structure",
56-
StructMembers: map[string]struct{}{
57-
"details": struct{}{},
58-
},
59-
},
60-
"Event": legacyJSONValues{
61-
Type: "structure",
62-
StructMembers: map[string]struct{}{
63-
"data": struct{}{},
64-
},
65-
},
66-
"ExperimentReport": legacyJSONValues{
67-
Type: "structure",
68-
StructMembers: map[string]struct{}{
69-
"content": struct{}{},
70-
},
71-
},
72-
"MetricDefinition": legacyJSONValues{
73-
Type: "structure",
74-
StructMembers: map[string]struct{}{
75-
"eventPattern": struct{}{},
76-
},
77-
},
78-
"MetricDefinitionConfig": legacyJSONValues{
79-
Type: "structure",
80-
StructMembers: map[string]struct{}{
81-
"eventPattern": struct{}{},
82-
},
83-
},
84-
},
8535
"cloudwatchrum": map[string]legacyJSONValues{
8636
"RumEvent": legacyJSONValues{
8737
Type: "structure",

service/cloudwatchevidently/api.go

+24-24
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)