-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from asam-ev/28-add-json-examples-for-material…
…-and-asset-files Add json examples for material and asset files
- Loading branch information
Showing
5 changed files
with
900 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Validate JSON schema files | ||
# Source: https://github.com/nhalstead/validate-json-action | ||
# Forked from: https://github.com/marketplace/actions/validate-json | ||
name: Validate JSON schemas for assets and materials | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'examples/**' | ||
- 'schemas/**' | ||
|
||
jobs: | ||
json-schema-validation: | ||
name: JSON schema validation | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Validate "asset" JSON schemas | ||
uses: nhalstead/[email protected] | ||
with: | ||
schema: ./schemas/asset_schema.json | ||
jsons: ./examples/*.xoma | ||
|
||
- name: Validate "material" JSON schemas | ||
uses: nhalstead/[email protected] | ||
with: | ||
schema: ./schemas/material_schema.json | ||
jsons: ./examples/*.xomp | ||
|
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,17 @@ | ||
{ | ||
"metadata": { | ||
"copyright" : "(C) 2023-2024, Example Company", | ||
"generator": "Blender", | ||
"openmaterial_version": "1.0.0", | ||
"creator": "Example Company", | ||
"creation_date": "20240703T101728Z", | ||
"asset_version": "1.0.0", | ||
"id": "87769375a5109c689af8cc3ad3dd8349", | ||
"name": "example_car", | ||
"label": "vehicle", | ||
"description": "Example car to demonstrate how OpenMATERIAL works" | ||
}, | ||
"material_mapping": [ | ||
["10;50;255;127", "example_material.xomp", "metal with red paint"] | ||
] | ||
} |
Oops, something went wrong.