Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Petermarcu
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
Petermarcu
2y ago
Wondering if you can generate your service stubs and your clients to use for testing from TypeSpec, could it be faster even in the prototyping/early stages to define your spec first? A la gRpc?
2.
▲
by
Petermarcu
2y ago
TypeSpec and Smithy live in a similar space here. You can generate OpenAPI specs from them, or you can generate assets directly from them. OpenAPI is one of the many possible outputs from TypeSpec. This is an example the author created of T
3.
▲
by
Petermarcu
2y ago
Agreed. If the schema can also generate the service routes, models, serialization, etc, and you just have to maintain the business logic in the service, you get the spec matches the service benefits that way as well. Best of both worlds? Pe
4.
▲
by
Petermarcu
2y ago
The author has an example repo demonstrating some of the early support for codegen. https://github.com/bterlson/typespec-todo Server side codegen is also one the horizon and is a key way to keep the spec and service in
5.
▲
by
Petermarcu
2y ago
http://typespec.io