swagger-dsl 1.2.0 → 1.2.1
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 +10 -3
- data/Rakefile +0 -0
- data/lib/swagger/dsl.rb +0 -0
- data/lib/swagger/dsl/components.rb +1 -1
- data/lib/swagger/dsl/config.rb +1 -1
- data/lib/swagger/dsl/json_schema.rb +1 -1
- data/lib/swagger/dsl/json_schema/jimmy.rb +1 -1
- data/lib/swagger/dsl/json_schema/jimmy_patch.rb +0 -0
- data/lib/swagger/dsl/json_schema/subset_dsl.rb +1 -1
- data/lib/swagger/dsl/operation.rb +1 -1
- data/lib/swagger/dsl/parameter.rb +1 -1
- data/lib/swagger/dsl/parameters.rb +1 -1
- data/lib/swagger/dsl/parameters_in_type.rb +0 -0
- data/lib/swagger/dsl/rails_controller.rb +1 -1
- data/lib/swagger/dsl/resolve_module.rb +1 -1
- data/lib/swagger/dsl/serializer.rb +1 -1
- data/lib/swagger/dsl/version.rb +1 -1
- data/swagger-dsl.gemspec +0 -0
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ba3213fa4bee6bcf07aab60aea7b6761cf64a3bb15ead9f40fd9d5b35e12842
|
4
|
+
data.tar.gz: 02b41c4c0890e96aa2bacfe71dfc96a9bb7cb809d65037f031a0e021b2b826a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab9aa6f9a7227be6e379b406fc5ff88c90ebef26856b4f22dd7ee8e902394db97d079491f1a377aadf72081092627d3615c524d4042b214e783f93b5791f78e5
|
7
|
+
data.tar.gz: ee5082bbf2f9acac4b3993aeccafbddfbbc3449d7d9977f5a3fce4cc1b7470f333b752a74c28d6b735fd5fb647175c83816576e6b6cbcf1ee0e5e679d0b5fc53
|
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
@@ -42,11 +42,10 @@ end
|
|
42
42
|
class UsersController < ApplicationController
|
43
43
|
swagger :update do
|
44
44
|
params do
|
45
|
-
path :id, schema: :integer
|
45
|
+
path :id, schema: :integer
|
46
46
|
query do
|
47
|
-
safe schema: :boolean
|
47
|
+
safe schema: :boolean, required: false
|
48
48
|
redirect do
|
49
|
-
required true
|
50
49
|
schema do
|
51
50
|
string!
|
52
51
|
format! "url"
|
@@ -83,6 +82,14 @@ Swagger::DSL.current["info"] = {
|
|
83
82
|
JSON.dump(Swagger::DSL.current)
|
84
83
|
```
|
85
84
|
|
85
|
+
### required default
|
86
|
+
|
87
|
+
Body and response parameters are "required" default in default DSL.
|
88
|
+
|
89
|
+
So `params` are also default "required".
|
90
|
+
|
91
|
+
If you do not want it, `Swagger::DSL.current.config.default_required = false`.
|
92
|
+
|
86
93
|
## Development
|
87
94
|
|
88
95
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/Rakefile
CHANGED
File without changes
|
data/lib/swagger/dsl.rb
CHANGED
File without changes
|
data/lib/swagger/dsl/config.rb
CHANGED
File without changes
|
File without changes
|
data/lib/swagger/dsl/version.rb
CHANGED
data/swagger-dsl.gemspec
CHANGED
File without changes
|
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.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Narazaka
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-12-
|
11
|
+
date: 2019-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jimmy
|
@@ -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.2.
|
267
|
+
documentation_uri: https://www.rubydoc.info/gems/swagger-dsl/1.2.1
|
268
268
|
post_install_message:
|
269
269
|
rdoc_options: []
|
270
270
|
require_paths:
|
@@ -280,7 +280,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
280
280
|
- !ruby/object:Gem::Version
|
281
281
|
version: '0'
|
282
282
|
requirements: []
|
283
|
-
|
283
|
+
rubyforge_project:
|
284
|
+
rubygems_version: 2.7.6
|
284
285
|
signing_key:
|
285
286
|
specification_version: 4
|
286
287
|
summary: Swagger (OpenAPI 3) DSL
|