Convert to magefile for validation
Convert Makefile to Magefile Add json validations
This commit is contained in:
parent
118e2f12c6
commit
1ea86db763
58 changed files with 530 additions and 54 deletions
23
schema/Components/CL_ItemAmount.json
Normal file
23
schema/Components/CL_ItemAmount.json
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"$id": "https://raw.githubusercontent.com/budak7273/ContentLib_Documentation/main/JsonSchemas/CL_ItemAmount.json",
|
||||
"title": "Item Amount Structure",
|
||||
"description": "Respresents a quantity of an item",
|
||||
"$comment": "This file does not represent ContentLib asset type! It's a resource used by other JSON Schemas.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"Item",
|
||||
"Amount"
|
||||
],
|
||||
"properties": {
|
||||
"Item": {
|
||||
"$ref": "./CL_NameResolvedAsset.json"
|
||||
},
|
||||
"Amount": {
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"description": "Integer specifying the quantity of item(s). Remember that remember that 1000 fluid units displays as 1 Liter ingame."
|
||||
}
|
||||
}
|
||||
}
|
9
schema/Components/CL_NameResolvedAsset.json
Normal file
9
schema/Components/CL_NameResolvedAsset.json
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"$id": "https://raw.githubusercontent.com/budak7273/ContentLib_Documentation/main/JsonSchemas/CL_NameResolvedAsset.json",
|
||||
"title": "ContentLib Name Resolved Asset",
|
||||
"description": "An asset that can be specified either with a full path, or a shortened name for ContentLib to resolve. See more info here: https://docs-dev.ficsit.app/contentlib/latest/BackgroundInfo/AutomaticNameResolving.html",
|
||||
"$comment": "This file does not represent ContentLib asset type! It's a resource used by other JSON Schemas. Please read https://docs-dev.ficsit.app/contentlib/latest/BackgroundInfo/AutomaticNameResolving.html",
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue