Infer_missing error
On macOS: 17.7.0 Darwin Kernel Version 17.7.0: Wed Oct 10 23:06:14 PDT 2018; root:xnu-4570.71.13~1/RELEASE_X86_64 x86_64
I'm trying to use this to verify valid glTF files using the official samples and I'm getting some strange errors:
$ pip3 install dataclasses-json==0.0.25
Collecting dataclasses-json==0.0.25
Using cached https://files.pythonhosted.org/packages/b8/dd/bca42db05616dd0a8eb5a3e8f5bf667a569a126a71cd1a20039fbc76cf6b/dataclasses_json-0.0.25-py3-none-any.whl
Requirement already satisfied: marshmallow>=3.0.0b20 in [snip]/lib/python3.7/site-packages (from dataclasses-json==0.0.25) (3.0.0rc4)
Installing collected packages: dataclasses-json
Successfully installed dataclasses-json-0.0.25
$ python3.7
Python 3.7.2 (default, Feb 21 2019, 07:44:22)
[Clang 10.0.0 (clang-1000.10.44.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import os.path
>>> from pygltflib import GLTF2
>>> PATH = "glTF-Sample-Models"
>>> fname = os.path.join(PATH, "2.0/Triangle/glTF/Triangle.gltf")
>>> gltf = GLTF2().load(fname)
[snip]/lib/python3.7/site-packages/dataclasses_json/core.py:41: RuntimeWarning: Missing value of non-optional type sparse detected when decoding Accessor and was defaulted to None by infer_missing=True. Set infer_missing=False (the default) to prevent this behavior.
f"behavior.", RuntimeWarning)
[snip]/lib/python3.7/site-packages/dataclasses_json/core.py:41: RuntimeWarning: Missing value of non-optional type name detected when decoding Accessor and was defaulted to None by infer_missing=True. Set infer_missing=False (the default) to prevent this behavior.
f"behavior.", RuntimeWarning)
[snip]/lib/python3.7/site-packages/dataclasses_json/core.py:41: RuntimeWarning: Missing value of non-optional type copyright detected when decoding Asset and was defaulted to None by infer_missing=True. Set infer_missing=False (the default) to prevent this behavior.
f"behavior.", RuntimeWarning)
[snip]/lib/python3.7/site-packages/dataclasses_json/core.py:41: RuntimeWarning: Missing value of non-optional type byteStride detected when decoding BufferView and was defaulted to None by infer_missing=True. Set infer_missing=False (the default) to prevent this behavior.
f"behavior.", RuntimeWarning)
[snip]/lib/python3.7/site-packages/dataclasses_json/core.py:41: RuntimeWarning: Missing value of non-optional type name detected when decoding BufferView and was defaulted to None by infer_missing=True. Set infer_missing=False (the default) to prevent this behavior.
f"behavior.", RuntimeWarning)
[snip]/lib/python3.7/site-packages/dataclasses_json/core.py:41: RuntimeWarning: Missing value of non-optional type NORMAL detected when decoding Attributes and was defaulted to None by infer_missing=True. Set infer_missing=False (the default) to prevent this behavior.
f"behavior.", RuntimeWarning)
[snip]/lib/python3.7/site-packages/dataclasses_json/core.py:41: RuntimeWarning: Missing value of non-optional type TANGENT detected when decoding Attributes and was defaulted to None by infer_missing=True. Set infer_missing=False (the default) to prevent this behavior.
f"behavior.", RuntimeWarning)
[snip]/lib/python3.7/site-packages/dataclasses_json/core.py:41: RuntimeWarning: Missing value of non-optional type TEXCOORD_0 detected when decoding Attributes and was defaulted to None by infer_missing=True. Set infer_missing=False (the default) to prevent this behavior.
f"behavior.", RuntimeWarning)
[snip]/lib/python3.7/site-packages/dataclasses_json/core.py:41: RuntimeWarning: Missing value of non-optional type TEXCOORD_1 detected when decoding Attributes and was defaulted to None by infer_missing=True. Set infer_missing=False (the default) to prevent this behavior.
f"behavior.", RuntimeWarning)
[snip]/lib/python3.7/site-packages/dataclasses_json/core.py:41: RuntimeWarning: Missing value of non-optional type COLOR_0 detected when decoding Attributes and was defaulted to None by infer_missing=True. Set infer_missing=False (the default) to prevent this behavior.
f"behavior.", RuntimeWarning)
[snip]/lib/python3.7/site-packages/dataclasses_json/core.py:41: RuntimeWarning: Missing value of non-optional type JOINTS_0 detected when decoding Attributes and was defaulted to None by infer_missing=True. Set infer_missing=False (the default) to prevent this behavior.
f"behavior.", RuntimeWarning)
[snip]/lib/python3.7/site-packages/dataclasses_json/core.py:41: RuntimeWarning: Missing value of non-optional type WEIGHTS_0 detected when decoding Attributes and was defaulted to None by infer_missing=True. Set infer_missing=False (the default) to prevent this behavior.
f"behavior.", RuntimeWarning)
[snip]/lib/python3.7/site-packages/dataclasses_json/core.py:41: RuntimeWarning: Missing value of non-optional type mode detected when decoding Primitive and was defaulted to None by infer_missing=True. Set infer_missing=False (the default) to prevent this behavior.
f"behavior.", RuntimeWarning)
[snip]/lib/python3.7/site-packages/dataclasses_json/core.py:41: RuntimeWarning: Missing value of non-optional type material detected when decoding Primitive and was defaulted to None by infer_missing=True. Set infer_missing=False (the default) to prevent this behavior.
f"behavior.", RuntimeWarning)
[snip]/lib/python3.7/site-packages/dataclasses_json/core.py:41: RuntimeWarning: Missing value of non-optional type name detected when decoding Mesh and was defaulted to None by infer_missing=True. Set infer_missing=False (the default) to prevent this behavior.
f"behavior.", RuntimeWarning)
[snip]/lib/python3.7/site-packages/dataclasses_json/core.py:41: RuntimeWarning: Missing value of non-optional type skin detected when decoding Node and was defaulted to None by infer_missing=True. Set infer_missing=False (the default) to prevent this behavior.
f"behavior.", RuntimeWarning)
[snip]/lib/python3.7/site-packages/dataclasses_json/core.py:41: RuntimeWarning: Missing value of non-optional type camera detected when decoding Node and was defaulted to None by infer_missing=True. Set infer_missing=False (the default) to prevent this behavior.
f"behavior.", RuntimeWarning)
[snip]/lib/python3.7/site-packages/dataclasses_json/core.py:41: RuntimeWarning: Missing value of non-optional type name detected when decoding Node and was defaulted to None by infer_missing=True. Set infer_missing=False (the default) to prevent this behavior.
f"behavior.", RuntimeWarning)
[snip]/lib/python3.7/site-packages/dataclasses_json/core.py:41: RuntimeWarning: Missing value of non-optional type scene detected when decoding GLTF2 and was defaulted to None by infer_missing=True. Set infer_missing=False (the default) to prevent this behavior.
f"behavior.", RuntimeWarning)
>>>
Any recommendations for a fix? Not sure where to change the infer_missing attribute.