-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
244 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
environment: | ||
matrix: | ||
- PYTHON: "C:\\Python27" | ||
- PYTHON: "C:\\Python27-x64" | ||
- PYTHON: "C:\\Python35" | ||
- PYTHON: "C:\\Python35-x64" | ||
- PYTHON: "C:\\Python36" | ||
- PYTHON: "C:\\Python36-x64" | ||
|
||
install: | ||
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%" | ||
- "python --version" | ||
- "python -c \"import struct; print(struct.calcsize('P') * 8)\"" | ||
- "pip install --disable-pip-version-check --user --upgrade pip" | ||
- "pip install -r requirements-dev.txt" | ||
|
||
build: off | ||
|
||
test_script: | ||
- "python -m pytest -s -v pyswagger/tests" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
### FAQ | ||
|
||
#### Format of byte? | ||
|
||
The way to encode/decode byte is [base64](https://github.com/wordnik/swagger-spec/issues/50). | ||
|
||
#### Format of datetime on the wire? | ||
|
||
should be an ISO8601 string, according to this [issue](https://github.com/wordnik/swagger-spec/issues/95). | ||
|
||
|
||
#### How **allowMultiple** is handled? | ||
|
||
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) | ||
|
||
#### What do we need to take care of when upgrading from Swagger 1.2 to 2.0? | ||
|
||
- **allowMultiple** is no longer supported, always passing an array even with a single value. | ||
- '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. | ||
- refer to [Migration Guide](https://github.com/swagger-api/swagger-spec/wiki/Swagger-1.2-to-2.0-Migration-Guide) from Swagger team. | ||
- 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
### NEWs | ||
|
||
Upcoming changes for OpenAPI 3.0 would be: | ||
|
||
- version changes to: `1.0.0`, if you need a stabler version, please use `pyswagger<1.0.0` in pip's requirement file. | ||
- 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)) | ||
- **$ref** would not be normalized anymore. Every field from API spec would be left unchanged and create another field for patched version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
__version__ = '0.8.36' | ||
__version__ = '0.8.37' | ||
|
||
from .getter import Getter | ||
from .core import App, Security | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.