Bug: Schema export does not include nested properties for array-object items
@JuanBerrocal is already working on this.
Since Nov 17, 2025.
Assessment
This issue has not been assessed yet.
Description
Description:
When exporting a schema that contains an array of objects with nested properties, only items: { bsonType: "object" } is exported. All nested property definitions inside the array items are missing from the export.
Steps to Reproduce:
- Load the "theaters" example schema (or any schema with arrays containing objects with nested properties)
- Verify the schema includes an array field with object items that have defined nested properties
- Export the schema
- Compare the exported code to the expected output
Current Output:
"location": { bsonType: "array", items: { bsonType: "object" } }
Expected Output:
"location": {
bsonType: "array",
items: {
bsonType: "object",
properties: {
"address": {
bsonType: "object",
properties: {
"street1": { bsonType: "string" },
"city": { bsonType: "string" }
}
}
}
}
}
Note:
Export works correctly for non-array objects. Nested properties are included when the field is a direct object type.
- Dominant language
- TypeScript
- Stars
- 139
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Lemoncode/mongo-modeler
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Lemoncode/mongo-modeler#610 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Lemoncode/mongo-modeler#609 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
Lemoncode/mongo-modeler#597 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
Lemoncode/mongo-modeler#591 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
Lemoncode/mongo-modeler#590 ·
All issues in Lemoncode/mongo-modeler
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
0xMiden/bridge-portal#132 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
area:tools bug good first issue help wanted priority:P2
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
TaewoooPark/Motifcode#14 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
newrelic-experimental/preflight#793 · 1 comment ·