2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-07-10 05:01:50 +00:00

feat: add json schema url to dumped materials

This commit is contained in:
Jan Laupetin
2025-07-06 16:52:37 +02:00
parent 238ac293ab
commit c53b17a3db
6 changed files with 6 additions and 0 deletions

View File

@ -64,6 +64,7 @@ namespace
CreateJsonMaterial(jsonMaterial, material); CreateJsonMaterial(jsonMaterial, material);
json jRoot = jsonMaterial; json jRoot = jsonMaterial;
jRoot["$schema"] = "https://openassettools.dev/schema/material.v1.json";
jRoot["_type"] = "material"; jRoot["_type"] = "material";
jRoot["_version"] = 1; jRoot["_version"] = 1;
jRoot["_game"] = GAME_LOWER; jRoot["_game"] = GAME_LOWER;

View File

@ -317,6 +317,7 @@ namespace
{ {
std::string expected(R"MATERIAL( std::string expected(R"MATERIAL(
{ {
"$schema": "https://openassettools.dev/schema/material.v1.json",
"_game": "iw3", "_game": "iw3",
"_type": "material", "_type": "material",
"_version": 1, "_version": 1,

View File

@ -295,6 +295,7 @@ namespace
{ {
std::string expected(R"MATERIAL( std::string expected(R"MATERIAL(
{ {
"$schema": "https://openassettools.dev/schema/material.v1.json",
"_game": "iw4", "_game": "iw4",
"_type": "material", "_type": "material",
"_version": 1, "_version": 1,

View File

@ -324,6 +324,7 @@ namespace
{ {
std::string expected(R"MATERIAL( std::string expected(R"MATERIAL(
{ {
"$schema": "https://openassettools.dev/schema/material.v1.json",
"_game": "iw5", "_game": "iw5",
"_type": "material", "_type": "material",
"_version": 1, "_version": 1,

View File

@ -297,6 +297,7 @@ namespace
{ {
std::string expected(R"MATERIAL( std::string expected(R"MATERIAL(
{ {
"$schema": "https://openassettools.dev/schema/material.v1.json",
"_game": "t5", "_game": "t5",
"_type": "material", "_type": "material",
"_version": 1, "_version": 1,

View File

@ -261,6 +261,7 @@ namespace
{ {
std::string expected(R"MATERIAL( std::string expected(R"MATERIAL(
{ {
"$schema": "https://openassettools.dev/schema/material.v1.json",
"_game": "t6", "_game": "t6",
"_type": "material", "_type": "material",
"_version": 1, "_version": 1,