Skip to content

elamp/typed-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Why Typed-api ?

Types are a useful part of documentation. But types aren't enough. In many languages, we can't describe a type float type between 1. and 2.59 easly. We think use schema description to validate user input is vital for an api and that writing types is doing at least twice the work (schema+ server type and maybe client's types).

So this program aims:

  • to generate type, server api and client api from validations schema
  • don't let the schemas be constrained by the chosen protocol

Roadmap

  • generate GRPC / Typescript client and server
  • generate Typescript schema for validation in server
  • add cli
  • generate HTTP
  • add GUI

FAQ

Why I can use a any type ?

any is an absence of typing. We prefer to use an enumeration of possible types. Moreover, we find this more explicit and flexible.

About

Generate client and server interface from schemas description

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published