-
Notifications
You must be signed in to change notification settings - Fork 20
/
config.rb
33 lines (22 loc) · 874 Bytes
/
config.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# frozen_string_literal: true
require 'open_api/config_dsl'
require 'active_support/all'
module OpenApi
module Config
include ConfigDSL
cattr_accessor(:default_run_dry) { false }
# [REQUIRED] The location where .json doc file will be output.
cattr_accessor(:file_output_path) { 'public/open_api' }
cattr_accessor(:doc_location) { ['./app/**/*_doc.rb'] }
cattr_accessor :rails_routes_file
cattr_accessor :model_base
# Everything about OAS3 is on https://github.com/OAI/OpenAPI-Specification/blob/OpenAPI.next/versions/3.0.0.md
# Getting started: https://swagger.io/docs/specification/basic-structure/
cattr_accessor(:open_api_docs) { { } }
cattr_accessor(:file_format) { 'binary' }
cattr_accessor(:additional_properties_default_value_of_type_object) { nil }
def self.docs
open_api_docs
end
end
end