Say, we have this struct:
struct Person {
struct Name {
let firstName: String
let lastName: String
}
let name: Name
let address: Address
}
and this json config:
{
"models": [
{
"name": "Person.Name",
"properties": [
{"name": "firstName", "type": "String"},
{"name": "lastName", "type": "String"}
]
},
{
"name": "Person",
"properties": [
{"name": "name", "type": "Person.Name"},
{"name": "address", "type": "Address"}
]
}
]
}
The result is not compilable.
At least, the type BoundLensToPerson.Name should be without dot.
Say, we have this struct:
and this json config:
{ "models": [ { "name": "Person.Name", "properties": [ {"name": "firstName", "type": "String"}, {"name": "lastName", "type": "String"} ] }, { "name": "Person", "properties": [ {"name": "name", "type": "Person.Name"}, {"name": "address", "type": "Address"} ] } ] }The result is not compilable.
At least, the type
BoundLensToPerson.Nameshould be without dot.