mirror of
https://forge.fsky.io/oneflux/omegafox.git
synced 2026-02-10 07:02:03 -08:00
jsonvv: Allow underscore in reference names 0.2.2
This commit is contained in:
parent
99801bd139
commit
816103870b
3 changed files with 3 additions and 13 deletions
|
|
@ -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.
|
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
|
## Supported Types
|
||||||
|
|
|
||||||
|
|
@ -187,7 +187,7 @@ class Parser:
|
||||||
|
|
||||||
# Only consume alphanumeric and underscore characters
|
# Only consume alphanumeric and underscore characters
|
||||||
while self.pos < self.length and (
|
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
|
self.pos += 1
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
|
||||||
|
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "jsonvv"
|
name = "jsonvv"
|
||||||
version = "0.2.1"
|
version = "0.2.2"
|
||||||
description = "JSON value validator"
|
description = "JSON value validator"
|
||||||
authors = ["daijro <daijro.dev@gmail.com>"]
|
authors = ["daijro <daijro.dev@gmail.com>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|
@ -19,7 +19,7 @@ keywords = [
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = "^3.7"
|
python = "^3.8"
|
||||||
|
|
||||||
[tool.poetry.scripts]
|
[tool.poetry.scripts]
|
||||||
jsonvv = "jsonvv.__main__:main"
|
jsonvv = "jsonvv.__main__:main"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue