From a1bb42ee00c48fc9970861362fa44b180e6ab1ff Mon Sep 17 00:00:00 2001 From: kstich Date: Tue, 24 Nov 2020 08:25:40 -0800 Subject: [PATCH] Fix auth and node examples --- docs/source/1.0/spec/core/auth-traits.rst | 7 +++++-- docs/source/1.0/spec/core/idl.rst | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/source/1.0/spec/core/auth-traits.rst b/docs/source/1.0/spec/core/auth-traits.rst index efdb3b1daaf..a953a61408b 100644 --- a/docs/source/1.0/spec/core/auth-traits.rst +++ b/docs/source/1.0/spec/core/auth-traits.rst @@ -375,7 +375,10 @@ authentication scheme trait that is not applied to the service: .. code-block:: smithy @httpDigestAuth - @auth([httpBasicAuth]) // <-- Invalid! service InvalidExample { - version: "2017-02-11" + version: "2017-02-11", + operations: [OperationA] } + + @auth([httpBasicAuth]) // <-- Invalid! + operation OperationA {} diff --git a/docs/source/1.0/spec/core/idl.rst b/docs/source/1.0/spec/core/idl.rst index 1262f2a4aeb..ea4fca944b2 100644 --- a/docs/source/1.0/spec/core/idl.rst +++ b/docs/source/1.0/spec/core/idl.rst @@ -1559,7 +1559,7 @@ The following examples define objects with zero, one, and two key value pairs: * ``{}`` * ``{foo: true}`` -* ``{foo: "hello", "bar": [1, 2, {},}`` +* ``{foo: "hello", "bar": [1, 2, {}]}`` .. rubric:: Number node