Skip to content

Commit d5eb523

Browse files
committed
fix: imports
1 parent 2c3d0e0 commit d5eb523

6 files changed

Lines changed: 18 additions & 17 deletions

File tree

model/article/article-io.smithy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ structure CreateArticleInput {
1414
brandSlug: Slug
1515

1616
@required
17+
@notProperty
1718
productSlug: Slug
1819

1920
@required

model/main.smithy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ $version: "2"
22

33
namespace com.shopping.inandout
44

5+
use aws.protocols#restJson1
56
use com.shopping.inandout.brand#Brand
67
use com.shopping.inandout.route#Route
78
use com.shopping.inandout.stand#Stand
@@ -30,6 +31,7 @@ service MappingService with [InAndOut] {
3031
}
3132

3233
@paginated(inputToken: "nextToken", outputToken: "nextToken", pageSize: "pageSize", items: "tokens")
34+
@documentation("Brands, Stores, Articles, Offers.")
3335
service BusinessService with [InAndOut] {
3436
resources: [
3537
Brand

model/offer/offer-io.smithy

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ $version: "2"
22

33
namespace com.shopping.inandout.offer
44

5+
use com.shopping.inandout.util#ID
56
use com.shopping.inandout.util#InputPagination
67
use com.shopping.inandout.util#NaturalNumber
78
use com.shopping.inandout.util#Percentage
89
use com.shopping.inandout.util#Slug
910
use com.shopping.inandout.util#SlugList
1011
use com.shopping.inandout.util#TimeRange
11-
use com.shopping.inandout.util#UID
1212
use com.shopping.inandout.util#UIDList
1313

1414
structure CreateOfferInput {
@@ -39,17 +39,13 @@ structure GetOfferInput {
3939

4040
@required
4141
@httpLabel
42-
offerId: UID
42+
offerId: ID
4343
}
4444

4545
structure ListOffersInput with [InputPagination] {
4646
@required
4747
@httpLabel
4848
brandSlug: Slug
49-
50-
@required
51-
@httpLabel
52-
offerId: UID
5349
}
5450

5551
structure UpdateOfferInput {
@@ -59,7 +55,7 @@ structure UpdateOfferInput {
5955

6056
@required
6157
@httpLabel
62-
offerId: UID
58+
offerId: ID
6359

6460
percentage: Percentage
6561

@@ -81,5 +77,5 @@ structure DeleteOfferInput {
8177

8278
@required
8379
@httpLabel
84-
offerId: UID
80+
offerId: ID
8581
}

model/stand/stand-apis.smithy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ operation ListStands {
5858
output: StandSummaries
5959
}
6060

61-
@http(method: "PATCH", uri: "/api/stores/{storeId}/stands/{standId}")
61+
@http(method: "PATCH", uri: "/api/brands/{brandSlug}/stores/{storeId}/stands/{standId}")
6262
operation UpdateStand {
6363
input: UpdateStandInput
6464
output: StandSummary
@@ -68,7 +68,7 @@ operation UpdateStand {
6868
}
6969

7070
@idempotent
71-
@http(method: "DELETE", uri: "/api/stores/{storeId}/stands/{standId}")
71+
@http(method: "DELETE", uri: "/api/brands/{brandSlug}/stores/{storeId}/stands/{standId}")
7272
operation DeleteStand {
7373
input: DeleteStandInput
7474
output: StandSummary

model/stand/stand-io.smithy

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ use com.shopping.inandout.util#Price
99
use com.shopping.inandout.util#ResourceName
1010
use com.shopping.inandout.util#Slug
1111
use com.shopping.inandout.util#UID
12-
use com.shopping.inandout.util#UUID
1312

1413
structure CreateStandInput {
1514
@required
@@ -24,7 +23,7 @@ structure CreateStandInput {
2423
articleSlug: Slug
2524

2625
@required
27-
edgeId: UUID
26+
edgeId: ID
2827

2928
price: Price
3029

@@ -42,7 +41,7 @@ structure GetStandInput {
4241

4342
@required
4443
@httpLabel
45-
standId: UUID
44+
standId: ID
4645
}
4746

4847
structure ListStandsInput with [InputPagination] {
@@ -75,9 +74,9 @@ structure UpdateStandInput {
7574

7675
@required
7776
@httpLabel
78-
standId: UUID
77+
standId: ID
7978

80-
edgeId: UUID
79+
edgeId: ID
8180

8281
price: Price
8382

@@ -95,5 +94,5 @@ structure DeleteStandInput {
9594

9695
@required
9796
@httpLabel
98-
standId: UUID
97+
standId: ID
9998
}

smithy-build.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
22
"version": "1.0",
3-
"sources": ["model/"]
3+
"sources": ["model/"],
4+
"maven": {
5+
"dependencies": ["software.amazon.smithy:smithy-aws-traits:1.67.0"]
6+
}
47
}

0 commit comments

Comments
 (0)