swaggard 4.0.1 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/swaggard/swagger/parameters/body.rb +1 -1
- data/lib/swaggard/version.rb +1 -1
- data/spec/fixtures/api.json +46 -0
- data/spec/fixtures/dummy/app/controllers/pets_controller.rb +7 -0
- data/spec/fixtures/dummy/app/serializers/pet_body.rb +3 -0
- data/spec/fixtures/dummy/config/routes.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1027d54356ae054b3765498f191cb2f20bfbbf0f9904ceb303fd4d5c2db22174
|
|
4
|
+
data.tar.gz: 6fb462d05a13551c8c257e62756cd2f5b1e7fcb38165dc7531b06286a9709fd8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0c22983eb886206224a65d7ba44ed909236031af1fdb6d38fab0e99639f68e404765e630b62d176eccb5458d4a72183b9a63e7ba959087348d6058b96dd23e03
|
|
7
|
+
data.tar.gz: 2da94dd7872f071794dc924b4245f1d9b70619b1867f4ba36edaf3a803746ced0d96c75d0fc3b7cb6d29d21fea4804932b0f935a132355bf5fbc78491f1ab30f
|
data/lib/swaggard/version.rb
CHANGED
data/spec/fixtures/api.json
CHANGED
|
@@ -57,6 +57,30 @@
|
|
|
57
57
|
"description": "successful operation"
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
+
},
|
|
61
|
+
"post": {
|
|
62
|
+
"tags": [
|
|
63
|
+
"pets"
|
|
64
|
+
],
|
|
65
|
+
"operationId": "create",
|
|
66
|
+
"summary": "create a new Pet",
|
|
67
|
+
"description": "",
|
|
68
|
+
"parameters": [],
|
|
69
|
+
"responses": {
|
|
70
|
+
"default": {
|
|
71
|
+
"description": "successful operation"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"requestBody": {
|
|
75
|
+
"required": true,
|
|
76
|
+
"content": {
|
|
77
|
+
"application/json": {
|
|
78
|
+
"schema": {
|
|
79
|
+
"$ref": "#/components/schemas/PetBody"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
60
84
|
}
|
|
61
85
|
},
|
|
62
86
|
"/pets/{id}": {
|
|
@@ -107,5 +131,27 @@
|
|
|
107
131
|
}
|
|
108
132
|
}
|
|
109
133
|
}
|
|
134
|
+
},
|
|
135
|
+
"components": {
|
|
136
|
+
"schemas": {
|
|
137
|
+
"PetBody": {
|
|
138
|
+
"type": "object",
|
|
139
|
+
"properties": {
|
|
140
|
+
"name": {
|
|
141
|
+
"type": "string",
|
|
142
|
+
"description": "The name of the Pet"
|
|
143
|
+
},
|
|
144
|
+
"age": {
|
|
145
|
+
"type": "integer",
|
|
146
|
+
"format": "int32",
|
|
147
|
+
"description": "The age of the Pet"
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"PetsController.create_body": {
|
|
152
|
+
"type": "object",
|
|
153
|
+
"properties": {}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
110
156
|
}
|
|
111
157
|
}
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: swaggard
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.0.
|
|
4
|
+
version: 4.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Adrian Gomez
|
|
@@ -152,6 +152,7 @@ files:
|
|
|
152
152
|
- spec/fixtures/dummy/app/controllers/admin/pets_controller.rb
|
|
153
153
|
- spec/fixtures/dummy/app/controllers/application_controller.rb
|
|
154
154
|
- spec/fixtures/dummy/app/controllers/pets_controller.rb
|
|
155
|
+
- spec/fixtures/dummy/app/serializers/pet_body.rb
|
|
155
156
|
- spec/fixtures/dummy/config/application.rb
|
|
156
157
|
- spec/fixtures/dummy/config/environments/development.rb
|
|
157
158
|
- spec/fixtures/dummy/config/routes.rb
|
|
@@ -188,6 +189,7 @@ test_files:
|
|
|
188
189
|
- spec/fixtures/dummy/app/controllers/admin/pets_controller.rb
|
|
189
190
|
- spec/fixtures/dummy/app/controllers/application_controller.rb
|
|
190
191
|
- spec/fixtures/dummy/app/controllers/pets_controller.rb
|
|
192
|
+
- spec/fixtures/dummy/app/serializers/pet_body.rb
|
|
191
193
|
- spec/fixtures/dummy/config/application.rb
|
|
192
194
|
- spec/fixtures/dummy/config/environments/development.rb
|
|
193
195
|
- spec/fixtures/dummy/config/routes.rb
|