mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-23 06:37:29 +08:00
Serialization test
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import IEntity from "../../js/entity/IEntity"
|
||||
import UnionType from "../../js/entity/UnionType"
|
||||
import Utility from "../../js/Utility"
|
||||
import SimpleObject from "./SimpleObject"
|
||||
import UnionType from "../../js/entity/UnionType"
|
||||
|
||||
export default class ComplexEntity extends IEntity {
|
||||
|
||||
@@ -61,12 +60,16 @@ export default class ComplexEntity extends IEntity {
|
||||
type: SimpleObject,
|
||||
},
|
||||
papa: {
|
||||
default: () => new SimpleObject(12, 13),
|
||||
default: () => new SimpleObject({ a: 12, b: 13 }),
|
||||
},
|
||||
quebec: {
|
||||
default: 0, // will assign undefined because it does not satisfy the predicate
|
||||
predicate: v => v >= 1 && v <= 10,
|
||||
},
|
||||
romeo: {
|
||||
type: SimpleObject,
|
||||
inline: true,
|
||||
},
|
||||
}
|
||||
|
||||
static {
|
||||
|
||||
Reference in New Issue
Block a user