Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
kostmo committed Aug 28, 2023
1 parent f5082d3 commit 8923a34
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 14 deletions.
8 changes: 4 additions & 4 deletions data/schema/attribute.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/swarm-game/swarm/main/data/schema/attribute.json",
"title": "Planar location",
"description": "Local attribute",
"title": "Scenario-local attributes",
"description": "Local attribute definitions",
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"description": "Name of subworld"
"description": "Name of attribute"
},
"fg": {
"type": "string",
Expand All @@ -19,7 +19,7 @@
"description": "Background color"
},
"style": {
"description": "Style properties",
"description": "Style properties list",
"type": "array",
"items": {
"type": "string"
Expand Down
2 changes: 1 addition & 1 deletion data/schema/objective.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"type": "boolean"
},
"teaser": {
"description": "A 2-3 word summary of the goal",
"description": "A compact (2-3 word) summary of the goal",
"type": "string"
},
"prerequisite": {}
Expand Down
3 changes: 2 additions & 1 deletion data/schema/placement.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
"$ref": "./planar-loc.json"
},
"orient": {
"type": "object",
"description": "Orientation of structure",
"type": "object",
"additionalProperties": false,
"properties": {
"up": {
"type": "string"
Expand Down
5 changes: 3 additions & 2 deletions data/schema/portal.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,21 @@
"type": "string"
},
"consistent": {
"description": "This portal is spatially consistent across worlds",
"description": "Whether this portal is spatially consistent across worlds",
"type": "boolean"
},
"exitInfo": {
"description": "Exit definition",
"type": "object",
"additionalProperties": false,
"properties": {
"exit": {
"type": "string",
"description": "Name of exit waypoint"
},
"subworldName": {
"type": "string",
"description": "Name of subworld"
"description": "Name of exit subworld"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion data/schema/recipes.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
]
}
],
"additionalProperties": false,
"properties": {
"additionalProperties": false,
"in": {
"$ref": "./inventory.json",
"description": "A list of ingredients consumed by the recipe. Each ingredient is a tuple consisting of an integer and an entity name, indicating the number of copies of the given entity that are needed."
Expand Down
3 changes: 0 additions & 3 deletions data/schema/samples/combustion.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion data/schema/structure.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/swarm-game/swarm/main/data/schema/structure.json",
"title": "Swarm entity combustion",
"title": "Structures",
"description": "Structure definitions",
"type": "object",
"additionalProperties": false,
Expand Down
2 changes: 1 addition & 1 deletion data/schema/world.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"description": "Name of this subworld"
},
"default": {
"description": "Default world cell",
"description": "Default world cell content",
"type": "array",
"items": {
"type": "string"
Expand Down

0 comments on commit 8923a34

Please sign in to comment.