Skip to content

Commit

Permalink
Merge pull request #151 from networktocode/develop
Browse files Browse the repository at this point in the history
v1.2.0 Release
  • Loading branch information
PhillSimonds authored Jun 6, 2023
2 parents 52848ce + 947233c commit eb83536
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 15 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## v1.2.0 - 2023-06-05

### Adds

- Support for versions of jsonschema >= 4.6

### Removes

- Support for versions of jsonschema < 4.6. See #141 for details.

## v1.1.5 - 2022-07-27

### Changes
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ bash$ cat pyproject.toml

### Supported Formats

By default, schema enforcer installs the jsonschema `format-nongpl` extra which allows the use of formats that can be used in schema definitions (e.g. ipv4, hostname...etc). The `format-nongpl` extra only installs transitive dependencies that are not licensed under GPL. The `iri` and `iri-reference` formats are defined by the `rfc3987` transitive dependency which is licensed under GPL. As such, `iri` and `iri-reference` formats are *not* supported by `format-nongpl`. If you have a need to use `iri` and/or `iri-reference` formats, you can do so by running the following pip command (or it's poetry equivalent):
By default, schema enforcer installs the jsonschema `format_nongpl` extra (in version <1.2.0) or `format-nongpl` (in versions >=1.2.0). This extra allows the use of formats that can be used in schema definitions (e.g. ipv4, hostname...etc). The `format_nongpl` or `format-nongpl` extra only installs transitive dependencies that are not licensed under GPL. The `iri` and `iri-reference` formats are defined by the `rfc3987` transitive dependency which is licensed under GPL. As such, `iri` and `iri-reference` formats are *not* supported by `format-nongpl`/`format_nongpl`. If you have a need to use `iri` and/or `iri-reference` formats, you can do so by running the following pip command (or it's poetry equivalent):

```
pip install 'jsonschema[rfc3987]'
Expand Down
24 changes: 12 additions & 12 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "schema-enforcer"
version = "1.1.5"
version = "1.2.0"
description = "Tool/Framework for testing structured data against schema definitions"
authors = ["Network to Code, LLC <[email protected]>"]
license = "Apache-2.0"
Expand All @@ -27,7 +27,7 @@ jsonpointer = "^2.1"
jmespath = "^0.10"
ansible = { version = "^2.10.0", optional = true }
ansible-base = { version = "^2.10.0", optional = true }
jsonschema = {version = ">3.2, <4.6", extras = ["format_nongpl"]}
jsonschema = {version = "^4.6", extras = ["format-nongpl"]}

[tool.poetry.extras]
ansible = ["ansible"]
Expand Down

0 comments on commit eb83536

Please sign in to comment.