You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-26Lines changed: 15 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,28 +8,25 @@ A python client for [Swagger](https://helloreverb.com/developers/swagger) enable
8
8
try Swagger REST API by [Swagger-UI](https://github.com/wordnik/swagger-ui). However, when it's time to **unittest**
9
9
your API, the first option you find would be [Swagger-codegen](https://github.com/wordnik/swagger-codegen), but the better option is us.
10
10
11
-
This project is developed after [swagger-py](https://github.com/digium/swagger-py), which is a nicely implemented one, and inspired many aspects of this project. Another project is [flex](https://github.com/pipermerriam/flex), which focuses on parameter validation, try it if you can handle other parts by yourselves.
12
-
13
-
For other projects related to Swagger tools in python, check [here](https://github.com/swagger-api/swagger-spec#python).
11
+
This project is developed after [swagger-py](https://github.com/digium/swagger-py), which is a nicely implemented one, and inspired many aspects of this project. Another project is [flex](https://github.com/pipermerriam/flex), which focuses on parameter validation, try it if you can handle other parts by yourselves. For other projects related to Swagger tools in python, check [here](https://github.com/swagger-api/swagger-spec#python).
14
12
15
13
**pyswagger** is much easier to use (compared to swagger-codegen, you don't need to prepare a scala environment) and tries hard to **fully supports**[Swagger Spec](https://helloreverb.com/developers/swagger) in all aspects.
16
14
17
-
Read the [Document](http://pyswagger.readthedocs.org/en/latest/), or just go through this README.
18
-
15
+
-[NEWs: upcoming support for OpenAPI 3.0](docs/md/news.md)
-**NEW**convert Swagger Document from older version to newer one. (ex. convert from 1.2 to 2.0)
29
+
- convert Swagger Document from older version to newer one. (ex. convert from 1.2 to 2.0)
33
30
- support Swagger **1.2**, **2.0** on python ~~2.6~~, **2.7**, **3.3**, **3.5**, **3.6**
34
31
- support YAML via [Pretty-YAML](https://github.com/mk-fg/pretty-yaml)
35
32
- support $ref to **External Document**, multiple swagger.json will be organized into a group of App. And external document with self-describing resource is also supported (refer to [issue](https://github.com/swagger-api/swagger-spec/issues/219)).
- The way to encode/decode byte is [base64](https://github.com/wordnik/swagger-spec/issues/50).
193
-
- Format of datetime on the wire?
194
-
- should be an ISO8601 string, according to this [issue](https://github.com/wordnik/swagger-spec/issues/95).
195
-
- How **allowMultiple** is handled?
196
-
- Take type integer as example, you can pass ~~an integer or~~ an array/tuple of integer for this parameter. (a single value is no longer supported)
197
-
- What do we need to take care of when upgrading from Swagger 1.2 to 2.0?
198
-
-**allowMultiple** is no longer supported, always passing an array even with a single value.
199
-
- 'different host for different resource' is no longer supported in Swagger 2.0, only one host and one basePath is allowed in one swagger.json.
200
-
- refer to [Migration Guide](https://github.com/swagger-api/swagger-spec/wiki/Swagger-1.2-to-2.0-Migration-Guide) from Swagger team.
201
-
- The name of body parameters is no longer included in requests, refer to this [issue](https://github.com/mission-liao/pyswagger/issues/13) for details.
The way to encode/decode byte is [base64](https://github.com/wordnik/swagger-spec/issues/50).
6
+
7
+
#### Format of datetime on the wire?
8
+
9
+
should be an ISO8601 string, according to this [issue](https://github.com/wordnik/swagger-spec/issues/95).
10
+
11
+
12
+
#### How **allowMultiple** is handled?
13
+
14
+
Take type integer as example, you can pass ~~an integer or~~ an array/tuple of integer for this parameter. (a single value is no longer supported)
15
+
16
+
#### What do we need to take care of when upgrading from Swagger 1.2 to 2.0?
17
+
18
+
-**allowMultiple** is no longer supported, always passing an array even with a single value.
19
+
- 'different host for different resource' is no longer supported in Swagger 2.0, only one host and one basePath is allowed in one swagger.json.
20
+
- refer to [Migration Guide](https://github.com/swagger-api/swagger-spec/wiki/Swagger-1.2-to-2.0-Migration-Guide) from Swagger team.
21
+
- The name of body parameters is no longer included in requests, refer to this [issue](https://github.com/mission-liao/pyswagger/issues/13) for details.
- version changes to: `1.0.0`, if you need a stabler version, please use `pyswagger<1.0.0` in pip's requirement file.
6
+
- most logic would be divided to this [repo](https://github.com/mission-liao/pyopenapi) and **pyswagger** would only contains code related to 'making reuqests' (just like what gophers did in [go-openapi](https://github.com/go-openapi))
7
+
-**$ref** would not be normalized anymore. Every field from API spec would be left unchanged and create another field for patched version.
0 commit comments