1,102 karma · joined Jun 12, 2015 (11y ago) · 1,205 submissions
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
> Our Smithy->Fern converter is in development so that Smithy users can take advantage of our SDK generators.
This is a good thing although there's definitely not going to be lossless.
Smithy trait seem to be an escape hatch for everything, I believe it could be used to achieve the same but maybe not easier. They already have pagination traits. And their http error is per operation, endpoint is also per operation, so I think the error is bound to operation as well (https://smithy.io/2.0/spec/http-bindings.html#httperror-trai...)
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
Reading the https://www.buildwithfern.com/docs/why-fern page, I wonder why not Smithy? They also have 1:1 IDL:AST. Is it too complex for just HTTP-JSON api?
I'm quite inclined to just follow Smithy spec (or subset), they seem to encounter many edge cases e.g. client codegen backward compatibility (https://smithy.io/2.0/spec/type-refinement-traits.html#clien...)
If it is to avoid java based tooling, it is bad to build your-fav-lang tools around its AST? Skipping the IDL + java parser coupling part.
I'm thinking if it's inevitable in this space to always have N+1 standard-ish problem. I found that what I come up with it's pretty close to Smithy.
What do you think why not Smithy?