TypeSpec From Serializers
TypeSpec From Serializers is a Ruby gem that automatically generates TypeSpec definitions from Ruby serializers and Rails routes. It is a derivative work of [types_from_serializers][types_from_serializers] by ElMassimo, originally designed to generate TypeScript definitions. This fork adapts the core functionality to produce TypeSpec descriptions, enabling Rails developers to define APIs compatible with TypeSpec’s ecosystem, including OpenAPI generation and client/server code scaffolding.
For more information, check the main README.
Installation 💿
Add this line to your application's Gemfile:
gem 'typespec_from_serializers'
And then execute:
$ bundle
Or install it yourself as:
$ gem install typespec_from_serializers