gltf icon indicating copy to clipboard operation
gltf copied to clipboard

byte_offset and extras of gltf-json::accessor::Accessor should be Option type

Open J-F-Liu opened this issue 5 years ago • 2 comments

So that the fields don't appear in serialized json.

J-F-Liu avatar Aug 27 '20 16:08 J-F-Liu

I think it would be better to use the serde(skip_serializing) attribute instead.

aloucks avatar Aug 27 '20 22:08 aloucks

yes, like #[serde(default, skip_serializing_if = "is_primitive_mode_default")]

J-F-Liu avatar Aug 28 '20 06:08 J-F-Liu