diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 4a712bbd..abde1fa8 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,5 +1,11 @@ # Release History +## 2.5.3 (2020-01-03) + +**Fixed** + +- fix: jsonschema, variables maybe in string type, e.g. '${get_variables()}' + ## 2.5.2 (2020-01-02) **Fixed** diff --git a/httprunner/__init__.py b/httprunner/__init__.py index 75a512bb..7774739f 100644 --- a/httprunner/__init__.py +++ b/httprunner/__init__.py @@ -1,4 +1,4 @@ -__version__ = "2.5.2" +__version__ = "2.5.3" __description__ = "One-stop solution for HTTP(S) testing." __all__ = ["__version__", "__description__"] diff --git a/httprunner/loader/schemas/common.schema.json b/httprunner/loader/schemas/common.schema.json index 0cbf6038..57b36b28 100644 --- a/httprunner/loader/schemas/common.schema.json +++ b/httprunner/loader/schemas/common.schema.json @@ -23,6 +23,12 @@ "maxProperties": 1, "minProperties": 1 } + }, + { + "type": "string", + "examples": [ + "${get_variables()}" + ] } ] }, diff --git a/pyproject.toml b/pyproject.toml index 39fec7ec..be0c6f14 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "httprunner" -version = "2.5.2" +version = "2.5.3" description = "One-stop solution for HTTP(S) testing." license = "Apache-2.0" readme = "README.md"