-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow an item in one extension to patch an item in another extension (#…
…111) * Fix to allow an item (a class or object) in one extension to patch an item in another extension. * Update dependencies * In test schema, add second patch of device to the rpg2 extension.
- Loading branch information
1 parent
f0de5e9
commit 29c4744
Showing
8 changed files
with
106 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"caption": "RPG 2", | ||
"description": "The second RPG extension extends the RPG extension.", | ||
"name": "rpg2", | ||
"uid": 43, | ||
"version": "0.1.0-rpg2-test" | ||
} |
10 changes: 10 additions & 0 deletions
10
test/test_ocsf_schema/extensions2/rpg2/objects/device_(patch).json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"caption": "RPG 2 Device", | ||
"description": "Patch extends of Device for the RPG 2 extension.", | ||
"extends": "device", | ||
"attributes": { | ||
"rpg/hp": { | ||
"requirement": "optional" | ||
} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
test/test_ocsf_schema/extensions2/rpg2/objects/hammer_(patch).json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"caption": "RPG 2 Hammer Patch", | ||
"extends": "rpg/hammer", | ||
"attributes": { | ||
"rpg/hp": { | ||
"requirement": "optional" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"caption": "Sword", | ||
"description": "The Sword object represents a stabby instrument of death.", | ||
"name": "sword", | ||
"attributes": { | ||
"desc": { | ||
"caption": "Description", | ||
"description": "The description of the sword, ordinarily as reported by the blacksmith.", | ||
"requirement": "optional" | ||
}, | ||
"name": { | ||
"description": "The sword's name. Named swords are just cooler.", | ||
"requirement": "recommended" | ||
}, | ||
"rpg/damage_range": { | ||
"description": "The amount of damage that could be inflicted by this sword.", | ||
"requirement": "recommended" | ||
} | ||
} | ||
} |