trimesh.schemas module

schemas.py

Tools for dealing with schemas, particularly JSONschema

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.resolvers.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