trimesh.schemas module

schemas.py

Tools for dealing with schemas, particularly JSONschema

Functions

resolve(item, resolver)

Given a JSON Schema containing $ref keys recursively evaluate to find and replace referenced files with their actual values using trimesh.visual.Resolver objects.

trimesh.schemas.resolve(item, resolver)

Given a JSON Schema containing $ref keys recursively evaluate to find and replace referenced files with their actual values using trimesh.visual.Resolver objects.

Parameters
  • item (any) – JSON schema including $ref to other files

  • resolver (trimesh.visual.resolver.Resolver) – Resolver to fetch referenced assets

Returns

result – JSONSchema with references replaced

Return type

any