-
Linting an open api description
npx @redocly/cli lint swagger/openapi.json
-
Generating doc hmtl page for the description
npx @redocly/cli build-docs swagger/openapi.json
# frozen_string_literal: true | |
# rubocop:disable Style/Documentation | |
IRB.conf[:SAVE_HISTORY] = 10_000 | |
alias r require | |
%w[json securerandom yaml pp pry pry-byebug redis zlib base64].each do |lib| | |
r lib | |
rescue LoadError |
Linting an open api description
npx @redocly/cli lint swagger/openapi.json
Generating doc hmtl page for the description
npx @redocly/cli build-docs swagger/openapi.json
require 'readline' | |
def __flush_history | |
Readline::HISTORY.slice!(0..-1) | |
end | |
def __restore_history(irb_history) | |
__flush_history | |
irb_history.each { |line| Readline::HISTORY << line } | |
end |
require 'bundler/inline' | |
gemfile do | |
source 'https://rubygems.org' | |
gem 'dry-configurable' | |
end | |
require "singleton" | |
class Settings |
With buf.gen.yaml
as:
version: v2
plugins:
- remote: buf.build/grpc/ruby:v1.71.0
out: gen
include_imports: true
- remote: buf.build/protocolbuffers/ruby:v30.2
out: gen