Comments (4)
Can you try to bypass the validation with @suppress(["PaginatedTrait"])
and see if that would work for you?
from smithy.
Do you really need to make the token nested on input? It seems like a bad idea to me since if you ever wanted to support something like HTTP bindings, you couldn't use a GET request and put the token in the query string (those only support top-level members).
from smithy.
Can you try to bypass the validation with
@suppress(["PaginatedTrait"])
and see if that would work for you?
That seems to result in it failing to build with this error:
Projection source failed: java.util.NoSuchElementException: No value present
[java] java.util.NoSuchElementException: No value present
Do you really need to make the token nested on input? It seems like a bad idea to me since if you ever wanted to support something like HTTP bindings, you couldn't use a GET request and put the token in the query string (those only support top-level members).
Yes, we do this to group any current and future pagination attributes, since a request has other attributes. With this operation, we have no plan of supporting GET requests as the filters can get quite large.
from smithy.
Like Michael stated, it's a bad idea. Additionally, if we start adding support for nesting/pathing in more places, we'll get more requests to add it elsewhere (say, in the http traits).
Closing this as not planned.
from smithy.
Related Issues (20)
- Feature request: SmithyBuildConfig -> Model utility HOT 2
- Validation issue with `nestedProperties` and member elision. HOT 6
- Can't provide error examples for an erorr applied at service level, as opposed to operation level
- Update codegen documentation to show smithy-trait-codegen HOT 3
- add ability to apply trait to inline inputs/outputs HOT 1
- Question: turning on warnings as errors? HOT 6
- Typo in rules engine Tree Rule object specs
- How to deserialize optional `@httpPayload`-bound shapes?
- Trait codegen doesn't like Document in collections
- Add option to fail the build on formatting violations HOT 2
- Feature request: includeFor integration HOT 5
- Lack of coverage in RPC v2 CBOR protocol test suite HOT 2
- HTTP binding traits mistakenly allowed in RPC protocols HOT 3
- Server behavior in AWS JSON 1.x protocol with empty input HOT 3
- HTTP malformed response testing
- Allow multiple protocols for OpenAPI conversions HOT 1
- `@required` in `document` shapes violated over the wire HOT 1
- Parsing for `ParameterTypes` has unintuitive casing rules
- Protocol tests for routing failures HOT 1
- Framework-level errors
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smithy.