jsonvv: Allow underscore in reference names 0.2.2

This commit is contained in:
daijro 2024-11-27 23:09:25 -06:00
parent 99801bd139
commit 816103870b
3 changed files with 3 additions and 13 deletions

View file

@ -189,16 +189,6 @@ This will require both `value` is set if and only if `isEnabled` is set.
Multiple `$` can be used to create more complex group dependencies.
```python
keyOne$group1: "any"
keyTwo$group2: "any"
keyThree$group1$group2: "any"
```
If `keyThree` is set, both `keyOne` and `keyTwo` must also be set.
However, if `keyOne` is set, `keyThree` needs to be set but `keyTwo` does not.
---
## Supported Types

View file

@ -187,7 +187,7 @@ class Parser:
# Only consume alphanumeric and underscore characters
while self.pos < self.length and (
self.type_str[self.pos].isalnum() or self.type_str[self.pos] in '!@'
self.type_str[self.pos].isalnum() or self.type_str[self.pos] in '_.@!'
):
self.pos += 1

View file

@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "jsonvv"
version = "0.2.1"
version = "0.2.2"
description = "JSON value validator"
authors = ["daijro <daijro.dev@gmail.com>"]
license = "MIT"
@ -19,7 +19,7 @@ keywords = [
]
[tool.poetry.dependencies]
python = "^3.7"
python = "^3.8"
[tool.poetry.scripts]
jsonvv = "jsonvv.__main__:main"