bevy/crates/bevy_reflect/src
Hank Jordan e85af0e366
Fix issue with Option serialization (#10705)
# Objective

- Fix #10499 

## Solution

- Use `.get_represented_type_info()` module path and type ident instead
of `.reflect_*` module path and type ident when serializing the `Option`
enum

---

## Changelog

- Fix serialization bug
- Add simple test
  - Add `serde_json` dev dependency
- Add `serde` with `derive` feature dev dependency (wouldn't compile for
me without it)

---------

Co-authored-by: hank <hank@hank.co.in>
Co-authored-by: Gino Valente <49806985+MrGVSV@users.noreply.github.com>
2023-11-23 14:04:51 +00:00
..
enums reflect: TypePath part 2 (#8768) 2023-10-09 19:33:03 +00:00
impls Migrate Quat reflection strategy from "value" to "struct" (#10068) 2023-10-09 22:01:42 +00:00
path Fix some nightly warnings (#9672) 2023-09-02 18:35:06 +00:00
serde Fix issue with Option serialization (#10705) 2023-11-23 14:04:51 +00:00
array.rs reflect: TypePath part 2 (#8768) 2023-10-09 19:33:03 +00:00
fields.rs reflect: TypePath part 2 (#8768) 2023-10-09 19:33:03 +00:00
from_reflect.rs reflect: TypePath part 2 (#8768) 2023-10-09 19:33:03 +00:00
lib.rs Add [lints] table, fix adding #![allow(clippy::type_complexity)] everywhere (#10011) 2023-11-18 20:58:48 +00:00
list.rs reflect: TypePath part 2 (#8768) 2023-10-09 19:33:03 +00:00
map.rs reflect: TypePath part 2 (#8768) 2023-10-09 19:33:03 +00:00
reflect.rs reflect: TypePath part 2 (#8768) 2023-10-09 19:33:03 +00:00
std_traits.rs fix nightly clippy warnings (#6395) 2022-10-28 21:03:01 +00:00
struct_trait.rs reflect: TypePath part 2 (#8768) 2023-10-09 19:33:03 +00:00
tuple_struct.rs bevy_reflect: Fix ignored/skipped field order (#7575) 2023-10-22 12:43:31 +00:00
tuple.rs reflect: TypePath part 2 (#8768) 2023-10-09 19:33:03 +00:00
type_info.rs reflect: TypePath part 2 (#8768) 2023-10-09 19:33:03 +00:00
type_path.rs bevy_reflect: Fix dynamic type serialization (#10103) 2023-10-16 23:31:16 +00:00
type_registry.rs reflect: TypePath part 2 (#8768) 2023-10-09 19:33:03 +00:00
type_uuid_impl.rs implement TypeUuid for primitives and fix multiple-parameter generics having the same TypeUuid (#6633) 2023-02-16 17:09:44 +00:00
type_uuid.rs implement TypeUuid for primitives and fix multiple-parameter generics having the same TypeUuid (#6633) 2023-02-16 17:09:44 +00:00
utility.rs Removed once_cell (#10079) 2023-10-12 10:20:07 +00:00