sord
rswag
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
sord
-
How do you document your code?
I tend to follow along using the YardDoc comment style. It has many small things I love about it; an example is when yardoc is followed it can be used to generate RBS/Sorbet type files with the sord gem, you can also generate application documents similar to rdoc/sdoc.
-
Ruby compiler is now 22–170% faster than Ruby's default implementation for Stripe's production API traffic
You may be interesting in checking out the Sord gem. If you do YARDOC based comments and documentation in your code not only does it make your code pretty easy to understand. But you can also generate Sorbet RBI and Ruby RBS files based off of your documentation. It's pretty much a require in any new project I start working with.
-
Do people use type signatures for ruby actively?
I love using yard as well and if you use it you can use sord and based on you yard annotates it'll build sorbet types for your code. I've used it on my last few projects and it's helped building your types setup amazingly easy.
-
Static Typing in Ruby 3 Gives Me a Headache (But I Could Grow to Like It)
Sord was originally developed to generate Sorbet type signature files from YARD comments. Sorbet is a type checking system developed by Stripe, and it does not use anything specific to Ruby 3 but is instead a custom DSL for defining types. However, Sord has recently been upgraded to support generation of RBS files (Ru*by **Signature*). This means that instead of having to write all your Ruby 3 type signature files by hand (which are standalone—Ruby 3 doesn't support inline typing in Ruby code itself), you can write YARD comments—just like with Solargraph—and autogenerate the signature files.
-
Ruby: How Can Something So Beautiful Become So Ugly
Why isn't anyone talking about Sord?? I see that as being a great solution. https://github.com/AaronC81/sord#example
-
Differences between Sorbet and RBS
Go for both until things evolve : https://github.com/AaronC81/sord
- the 'sord' gem can automatically generate .rbi and .rbs type signature files from YARD doc
rswag
- A Deep Dive into RSpec Tests in Ruby on Rails
-
Generating an OpenAPI/Swagger spec from a Ruby on Rails API
We will be creating a "Coffee Ordering API" using Ruby on Rails, and using a tool called rswag to create tests that verify the behaviour of our API and generate an OpenAPI reference.
-
Build JSON schemas fluently!
Made a library a while back that helped me write JSON schemas for rswag. Hope others find it useful!
-
Documenting Forem's v1 API
Forem, which is a Ruby on Rails app, integrates Swagger via a gem - the rswag gem. The rswag Ruby gem allows us to create a Swagger-based DSL for describing and testing our API operations. It also extends rspec-rails "request specs”, hence, allowing our documentation to be a part of our test suite which allows us to make requests with test parameters and seed data that invoke different response codes. As a result, we are able to test what the requests and responses look like, however we do not test the business logic that drives the endpoint - that is tested elsewhere in the code.
-
How do you document your code?
Using something like rswag will give you some ability, in the specs, to also describe the endpoints and auto-generate some documentation.
-
Is there a way to easily autogenerate API documentation for a Ruby on Rails API?
Hello! I would like to autogenerate API documentation for my Ruby on Rails Application. However, all of the solutions I've found such as https://github.com/rswag/rswag and https://github.com/richhollis/swagger-docs involve writing tests or manually describing the endpoint responses. I am hoping to find something similar to Swashbuckle for ASP.Net Core but for Ruby on Rails. Below is an example of using Swashbuckle's ASP.NET Core to autogenerate Swagger API documentation. The response type is inferred form the return type of the action.
-
I'm a front-end dev currently being asked to work on a Rails API backend. What are some good resources to get comfortable with the language and the framework?
https://github.com/rswag/rswag - helps generate Swagger documentation (you can upload it to an external service, like readme.com or serve from your Rails app)
-
OpenAPI Specification: The Complete Guide
rswag expands the "request specifications" of rspec-rails with a Swagger-based DSL for defining and testing API activities. - Github
-
Looking for a full Rswag example project.
Hello guys, I'm working on a rails (4.x) project, trying to implement a way to create docs for OpenApi 3 and Swagger (I started to learn rails in october last year), this project has like 6 years old, a lot of endpoints and very poor documentation, my first option is Rswag, does anyone knows a good example project for these gem?
-
Help with Rswag + openapi-generator-cli
I'm using the Rswag gem to document my API. Right now I have a WIP here: https://cabal-fintech.herokuapp.com/api-docs/v1/swagger.json but whenever I try to validate it on the swagger validator I get an error not even understandable to me, as that route doesn't need [params].item
What are some alternatives?
tapioca - The swiss army knife of RBI generation
Apipie - Ruby on Rails API documentation tool
YARD - YARD is a Ruby Documentation tool. The Y stands for "Yay!"
budibase - Budibase is an open-source low code platform that helps you build internal tools in minutes 🚀
steep - Static type checker for Ruby
rspec-openapi - Generate OpenAPI schema from RSpec request specs
rubydoc.info - Next generation rdoc.info site
appsmith - Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
yard-doctest - Doctests from YARD examples
RDoc - RDoc produces HTML and online documentation for Ruby projects.
yard-markdown - yard plugin to generate markdown documentation
Blueprinter - Simple, Fast, and Declarative Serialization Library for Ruby