File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff 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 [
You can’t perform that action at this time.
0 commit comments