Skip to content

Commit

Permalink
feat: Add validation for Spawning Gear Configs
Browse files Browse the repository at this point in the history
Add schema validation for Spawning Gear Configuration files from 1.23
  • Loading branch information
rvost committed Oct 30, 2023
1 parent 6e1673c commit 2b0742d
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

## [Unreleased]

## [0.5.0]

### Added

- Schema for Spawning Gear Configuration for 1.23 game update.

## [0.4.0]

### Added
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,15 @@ Completion and validation for Object Spawner custom lists currently only works
For example, the `objectSpawners/nwaf.json` file will have completion and validation according to the [Object Spawner](https://community.bistudio.com/wiki?title=DayZ%3AObject_Spawner) rules, but `custom/berezino.json` or `altartrader.json` will not.
*This is due to limitations of the VS Code JSON Schema API and may be resolved in the future.*

Completion and validation for Spawning Gear Configuration currently only works for json files in the `spawnPresets` folder **or** files which name ends with `_loadout` (e.g. `deathmatch_loadout.json`).

## Release Notes

### 0.5.0

- Updated schemas for DayZ 1.23 Experimental
- Added schema for Spawning Gear Configuration.

### 0.4.0

- Added Ability for users to add documentation links.
Expand Down
11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Schema validation for DayZ CE configuration files",
"publisher": "rvost",
"license": "EPL-2.0",
"version": "0.4.1",
"version": "0.5.0",
"icon": "assets/icon.png",
"engines": {
"vscode": "^1.82.0"
Expand Down Expand Up @@ -64,6 +64,15 @@
{
"fileMatch": "**/objectSpawners/*.json",
"url": "https://rvost.github.io/DayZ-Central-Economy-Schema/objectSpawner.schema.json"
},
{
"fileMatch": [
"cfgPlayerSpawnGear.json",
"cfgplayerspawnGear.json",
"**/*_loadout.json",
"**/spawnPresets/*.json"
],
"url": "https://rvost.github.io/DayZ-Central-Economy-Schema/cfgPlayerSpawnGear.schema.json"
}
],
"configuration": {
Expand Down

0 comments on commit 2b0742d

Please sign in to comment.