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

Omit commas to match style guide #1166

Merged
merged 1 commit into from
Mar 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/source/1.0/spec/aws/aws-core.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1216,19 +1216,19 @@ setting the ``validationMode`` input property to "ENABLED".
responseAlgorithms: ["CRC32C", "CRC32", "SHA1", "SHA256"]
)
operation PutSomething {
input: PutSomethingInput,
input: PutSomethingInput
output: PutSomethingOutput
}

structure PutSomethingInput {
@httpHeader("x-amz-request-algorithm")
checksumAlgorithm: ChecksumAlgorithm,
checksumAlgorithm: ChecksumAlgorithm

@httpHeader("x-amz-response-validation-mode")
validationMode: ValidationMode,
validationMode: ValidationMode

@httpPayload
content: Blob,
content: Blob
}

@enum([
Expand Down Expand Up @@ -1267,7 +1267,7 @@ behavior, will fail validation.

@httpChecksum()
operation PutSomething {
input: PutSomethingInput,
input: PutSomethingInput
output: PutSomethingOutput
}

Expand Down
6 changes: 3 additions & 3 deletions docs/source/1.0/spec/aws/aws-iam.rst
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,8 @@ The following example defines two operations:

@supportedPrincipalTypes(["Root", "IAMUser", "IAMRole", "FederatedUser"])
service MyService {
version: "2020-07-02",
operations: [OperationA, OperationB],
version: "2020-07-02"
operations: [OperationA, OperationB]
}

@supportedPrincipalTypes(["Root"])
Expand Down Expand Up @@ -577,7 +577,7 @@ deviates from the :ref:`shape name of the shape ID <shape-id>` of the resource.
resource SuperResource {
identifiers: {
superId: String,
},
}
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ Consider the following *abridged* model of S3's ``GetBucketLocation`` operation:
@http(uri: "/GetBucketLocation", method: "GET")
@s3UnwrappedXmlOutput
operation GetBucketLocation {
input: GetBucketLocationInput,
input: GetBucketLocationInput
output: GetBucketLocationOutput
}

Expand Down
30 changes: 15 additions & 15 deletions docs/source/1.0/spec/core/idl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -436,9 +436,9 @@ so that they can be referred to using only ``Foo`` and ``Baz``.

map MyMap {
// Resolves to smithy.example#Foo
key: Foo,
key: Foo
// Resolves to smithy.example#Baz
value: Baz,
value: Baz
}

A use statement can refer to :ref:`traits <traits>` too. The following example
Expand Down Expand Up @@ -493,34 +493,34 @@ to.
structure MyStructure {
// Resolves to smithy.example#MyString
// There is a shape named MyString defined in the same namespace.
a: MyString,
a: MyString

// Resolves to smithy.example#MyString
// Absolute shape IDs do not perform namespace resolution.
b: smithy.example#MyString,
b: smithy.example#MyString

// Resolves to foo.baz#Bar
// The "use foo.baz#Bar" statement imported the Bar symbol,
// allowing the shape to be referenced using a relative shape ID.
c: Bar,
c: Bar

// Resolves to smithy.api#String
// No shape named String was imported through a use statement
// the smithy.example namespace does not contain a shape named
// String, and the prelude model contains a shape named String.
d: String,
d: String

// Resolves to smithy.example#MyBoolean.
// There is a shape named MyBoolean defined in the same namespace.
// Forward references are supported both within the same file and
// across multiple files.
e: MyBoolean,
e: MyBoolean

// Resolves to smithy.example#InvalidShape. A shape by this name has
// not been imported through a use statement, a shape by this name
// does not exist in the current namespace, and a shape by this name
// does not exist in the prelude model.
f: InvalidShape,
f: InvalidShape
}

boolean MyBoolean
Expand Down Expand Up @@ -1039,8 +1039,8 @@ The following example defines a structure with two members:
namespace smithy.example

structure MyStructure {
foo: String,
baz: Integer,
foo: String
baz: Integer
}

.. code-tab:: json
Expand Down Expand Up @@ -1074,11 +1074,11 @@ Traits can be applied to structure members:
structure MyStructure {
/// This is documentation for `foo`.
@required
foo: String,
foo: String

/// This is documentation for `baz`.
@deprecated
baz: Integer,
baz: Integer
}

.. code-tab:: json
Expand Down Expand Up @@ -1128,12 +1128,12 @@ The following example defines a union shape with several members:
namespace smithy.example

union MyUnion {
i32: Integer,
i32: Integer

@length(min: 1, max: 100)
string: String,
string: String

time: Timestamp,
time: Timestamp
}

.. code-tab:: json
Expand Down
6 changes: 3 additions & 3 deletions docs/source/1.0/spec/core/traits/http-traits.rst.template
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,7 @@ disregard the value set by ``httpQueryParams``. For example, given the following
}

map MapOfStrings {
key: String,
key: String
value: String
}

Expand Down Expand Up @@ -1094,7 +1094,7 @@ given the following model:
}

map MapOfStrings {
key: String,
key: String
value: String
}

Expand Down Expand Up @@ -1317,7 +1317,7 @@ marked with the ``httpPayload`` trait:

@input
structure InvalidOperationInput {
invalid: MessageStream, // <-- Missing the @httpPayload trait
invalid: MessageStream // <-- Missing the @httpPayload trait
}

@streaming
Expand Down
4 changes: 2 additions & 2 deletions docs/source/1.0/spec/mqtt.rst
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ The following example defines an operation that publishes messages to the

@publish("foo/{bar}")
operation PostFoo {
input: PostFooInput,
input: PostFooInput
output: Unit
}

Expand All @@ -180,7 +180,7 @@ The following example defines an operation that publishes messages to the
@topicLabel
bar: String

someValue: String,
someValue: String
anotherValue: Boolean
}

Expand Down