Convert to magefile for validation

Convert Makefile to Magefile
Add json validations
This commit is contained in:
Merith 2025-06-22 12:44:17 -07:00
parent 118e2f12c6
commit 1ea86db763
58 changed files with 530 additions and 54 deletions

View 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."
}
}
}

View 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
}