Skip to content

Commit 63ffbd1

Browse files
authored
Merge pull request #42 from funktechno/f/updates
F/updates last fk bug fix
2 parents c43e9cd + f6dcb6d commit 63ffbd1

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/utils/nosqlUtils.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -275,18 +275,17 @@ export function ConvertOpenApiToDatabaseModel(
275275
Object.prototype.hasOwnProperty.call(schema.properties, propertyKey)
276276
) {
277277
const property = schema.properties[propertyKey];
278-
// TODO: if note object or array use ref
279-
278+
// if note object or array use ref
280279
let refName: string | null | undefined = null;
281280
if (property.$ref) {
282281
refName = property.$ref.split("/").pop();
283282
} else if (property.items && typeof property.items == objectKeyword) {
284283
refName = (property.items as JSONSchema4).$ref?.split("/").pop();
285284
} else if (
286-
property.additionalItems &&
287-
typeof property.additionalItems == "object"
285+
property.additionalProperties &&
286+
typeof property.additionalProperties == "object"
288287
) {
289-
refName = property.additionalItems.$ref?.split("/").pop();
288+
refName = property.additionalProperties.$ref?.split("/").pop();
290289
}
291290
if (refName) {
292291
const refSchema: JSONSchema4 | null = schemas[

0 commit comments

Comments
 (0)