Skip to content

Commit 948c500

Browse files
authored
Improve model validation error message for operations missing request URI. (#6767)
1 parent 4cb194f commit 948c500

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS SDK for Java v2 Code Generator",
4+
"contributor": "",
5+
"description": "Improve model validation error message for operations missing request URI."
6+
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
.classpath
33
.project
44
.settings/
5+
.factorypath
56

67
# Intellij
78
.idea/*

codegen/src/main/java/software/amazon/awssdk/codegen/AddShapes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ private String findRequestUri(Shape parentShape, Map<String, Shape> allC2jShapes
367367

368368
return operation.map(o -> o.getHttp().getRequestUri())
369369
.orElseThrow(() -> {
370-
String detailMsg = "Could not find request URI for input shape";
370+
String detailMsg = "Could not find request URI for input shape for operation: " + operation;
371371
ValidationEntry entry =
372372
new ValidationEntry().withErrorId(ValidationErrorId.REQUEST_URI_NOT_FOUND)
373373
.withDetailMessage(detailMsg)

0 commit comments

Comments
 (0)