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

Major selector enhancements #388

Merged
merged 7 commits into from
Apr 20, 2020
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
2 changes: 1 addition & 1 deletion docs/source/spec/aws/amazon-apigateway.rst
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ Summary
Authorizers are resolved hierarchically: an operation inherits
the effective authorizer applied to a parent resource or operation.
Trait selector
``:each(service, resource, operation)``
``:is(service, resource, operation)``

*A service, resource, or operation*
Value type
Expand Down
2 changes: 1 addition & 1 deletion docs/source/spec/core/auth-traits.rst
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ Summary
supported by the operation, overriding any ``auth`` trait specified
on a service.
Trait selector
``:test(service, operation)``
``:is(service, operation)``

*Service or operation shapes*
Value type
Expand Down
2 changes: 1 addition & 1 deletion docs/source/spec/core/behavior-traits.rst
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ Summary
the number of results returned in a single response and that multiple
invocations might be necessary to retrieve all results.
Trait selector
``:test(operation, service)``
``:is(operation, service)``

*An operation or service*
Value type
Expand Down
2 changes: 1 addition & 1 deletion docs/source/spec/core/constraint-traits.rst
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ Given the following model,
Summary
Constrains a shape to minimum and maximum number of elements or size.
Trait selector
``:test(list, map, string, blob, member > :each(list, map, string, blob))``
``:test(list, map, string, blob, member > :is(list, map, string, blob))``

*Any list, map, string, or blob; or a member that targets one of these shapes*
Value type
Expand Down
4 changes: 2 additions & 2 deletions docs/source/spec/core/documentation-traits.rst
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ Summary
Indicates that the data stored in the shape or member is sensitive
and MUST be handled with care.
Trait selector
``:not(:test(service, operation, resource))``
``:not(:is(service, operation, resource))``

*Any shape that is not a service, operation, or resource.*
Value type
Expand Down Expand Up @@ -345,7 +345,7 @@ Summary
used in automatically generated documentation and other contexts to
provide a user friendly name for services and resources.
Trait selector
``:test(service, resource)``
``:is(service, resource)``

*Any service or resource*
Value type
Expand Down
7 changes: 4 additions & 3 deletions docs/source/spec/core/lexical-structure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,10 @@ Shape IDs are formally defined by the following ABNF:
.. productionlist:: smithy
identifier :(ALPHA / "_") *(ALPHA / DIGIT / "_")
namespace :`identifier` *("." `identifier`)
shape_id :`absolute_shape_id` / `relative_shape_id`
absolute_shape_id :`namespace` "#" `relative_shape_id`
relative_shape_id :`identifier` ["$" `identifier`]
shape_id :`root_shape_id` [`shape_id_member`]
root_shape_id :`absolute_shape_id` / `identifier`
absolute_shape_id :`namespace` "#" `identifier`
shape_id_member :"$" `identifier`
LOALPHA :%x61-7A ; a-z

.. admonition:: Lexical note
Expand Down
2 changes: 1 addition & 1 deletion docs/source/spec/core/protocol-traits.rst
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ Summary
Describes the contents of a blob or string shape using a media type as
defined by :rfc:`6838` (e.g., "video/quicktime").
Trait selector
``:test(blob, string)``
``:is(blob, string)``

*Any blob or string*
Value type
Expand Down
2 changes: 1 addition & 1 deletion docs/source/spec/core/resource-traits.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Summary
to resolve references by name, allowing the end-user to invoke operations
on a specific referenced resource.
Trait selector
``:test(structure, string)``
``:is(structure, string)``

*Any structure or string*
Value type
Expand Down
Loading