We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bd2198 commit 953387eCopy full SHA for 953387e
reverse_engineering/api.js
@@ -171,16 +171,16 @@ const handleOpenAPIData = (openAPISchema, fieldOrder) =>
171
const currentEntities = modelContent.entities[container.name];
172
return [
173
...accumulator,
174
- ...currentEntities.map(entity => {
+ ...currentEntities.map((entity, index) => {
175
const packageData = {
176
objectNames: {
177
collectionName: entity.collectionName,
178
},
179
doc: {
180
dbName: container.name,
181
182
- modelDefinitions: definitions,
183
bucketInfo: container,
+ ...(index === 0 && { modelDefinitions: definitions }),
184
185
jsonSchema: JSON.stringify(entity),
186
};
0 commit comments