swagger-dsl 1.4.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +0 -0
- data/.gitignore +0 -0
- data/.prettierrc +0 -0
- data/.rspec +0 -0
- data/.rubocop.yml +0 -0
- data/.rubocop_airbnb.yml +0 -0
- data/CHANGELOG.md +0 -0
- data/Gemfile +0 -0
- data/LICENSE +0 -0
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/lib/swagger/dsl.rb +0 -0
- data/lib/swagger/dsl/components.rb +0 -0
- data/lib/swagger/dsl/config.rb +0 -0
- data/lib/swagger/dsl/json_schema.rb +0 -0
- data/lib/swagger/dsl/json_schema/jimmy.rb +0 -0
- data/lib/swagger/dsl/json_schema/jimmy_patch.rb +0 -0
- data/lib/swagger/dsl/json_schema/subset_dsl.rb +0 -0
- data/lib/swagger/dsl/operation.rb +13 -0
- data/lib/swagger/dsl/parameter.rb +0 -0
- data/lib/swagger/dsl/parameters.rb +0 -0
- data/lib/swagger/dsl/parameters_in_type.rb +0 -0
- data/lib/swagger/dsl/rails_controller.rb +0 -0
- data/lib/swagger/dsl/resolve_module.rb +0 -0
- data/lib/swagger/dsl/serializer.rb +0 -0
- data/lib/swagger/dsl/version.rb +1 -1
- data/swagger-dsl.gemspec +1 -1
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ecb702f7ccc67a100818688d3485e5412f9d332af2bfa1b58b8f58c741504694
|
4
|
+
data.tar.gz: 6ace6ed015f84d78cacbc7718045153e3d26f7fd578fa477177ee6a6f54b3474
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75a3957270bbe0bdc800f376438112f1dd3056ffee525c34672beb12b63a0441eee10badbaddb924e15358c0907ea96006ea23be278bff9a758c5c7d2f035dc8
|
7
|
+
data.tar.gz: face316a38563b9b8f6e8f06cbe5c2ef0f7ef6bb59a5bc3c5d4802aedade9817284369ee992ed60149cee16aea8cf7f384201e508e0a8c5e8bba64c22883f46b
|
data/.github/workflows/ruby.yml
CHANGED
File without changes
|
data/.gitignore
CHANGED
File without changes
|
data/.prettierrc
CHANGED
File without changes
|
data/.rspec
CHANGED
File without changes
|
data/.rubocop.yml
CHANGED
File without changes
|
data/.rubocop_airbnb.yml
CHANGED
File without changes
|
data/CHANGELOG.md
CHANGED
File without changes
|
data/Gemfile
CHANGED
File without changes
|
data/LICENSE
CHANGED
File without changes
|
data/README.md
CHANGED
File without changes
|
data/Rakefile
CHANGED
File without changes
|
data/lib/swagger/dsl.rb
CHANGED
File without changes
|
File without changes
|
data/lib/swagger/dsl/config.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -19,10 +19,23 @@ module Swagger
|
|
19
19
|
self["requestBody"] = { "content" => {}, "required" => true }
|
20
20
|
self["responses"] = {}
|
21
21
|
self["parameters"] = []
|
22
|
+
self["tags"] = []
|
22
23
|
@format = format
|
23
24
|
instance_eval(&block)
|
24
25
|
end
|
25
26
|
|
27
|
+
def summary(text)
|
28
|
+
self["summary"] = text
|
29
|
+
end
|
30
|
+
|
31
|
+
def description(text)
|
32
|
+
self["description"] = text
|
33
|
+
end
|
34
|
+
|
35
|
+
def tags(*tags)
|
36
|
+
self["tags"].concat(tags.flatten(1))
|
37
|
+
end
|
38
|
+
|
26
39
|
def params(default_required: Swagger::DSL.current.config.default_required, &block)
|
27
40
|
self["parameters"] = Parameters.new(default_required: default_required, &block)
|
28
41
|
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/swagger/dsl/version.rb
CHANGED
data/swagger-dsl.gemspec
CHANGED
@@ -33,7 +33,7 @@ Gem::Specification.new do |spec|
|
|
33
33
|
spec.add_dependency "json_refs", "~> 0.1"
|
34
34
|
spec.add_dependency "activesupport", "~> 6.0"
|
35
35
|
spec.add_development_dependency "bundler", "~> 2.0"
|
36
|
-
spec.add_development_dependency "rake", "~>
|
36
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
37
37
|
spec.add_development_dependency "rspec", "~> 3.9"
|
38
38
|
spec.add_development_dependency "rspec-power_assert", "~> 1.1"
|
39
39
|
spec.add_development_dependency "rubocop", "~> 0.76"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: swagger-dsl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Narazaka
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jimmy
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '13.0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
110
|
+
version: '13.0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: rspec
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -264,7 +264,7 @@ metadata:
|
|
264
264
|
homepage_uri: https://github.com/Narazaka/swagger-dsl
|
265
265
|
source_code_uri: https://github.com/Narazaka/swagger-dsl.git
|
266
266
|
changelog_uri: https://github.com/Narazaka/swagger-dsl/blob/master/CHANGELOG.md
|
267
|
-
documentation_uri: https://www.rubydoc.info/gems/swagger-dsl/1.
|
267
|
+
documentation_uri: https://www.rubydoc.info/gems/swagger-dsl/1.5.0
|
268
268
|
post_install_message:
|
269
269
|
rdoc_options: []
|
270
270
|
require_paths:
|
@@ -280,8 +280,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
280
280
|
- !ruby/object:Gem::Version
|
281
281
|
version: '0'
|
282
282
|
requirements: []
|
283
|
-
|
284
|
-
rubygems_version: 2.7.6
|
283
|
+
rubygems_version: 3.0.3
|
285
284
|
signing_key:
|
286
285
|
specification_version: 4
|
287
286
|
summary: Swagger (OpenAPI 3) DSL
|