You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This means changing a lot of properties all across our codebase. This should not be necessary, right? Or is Loopback not able to infer the items property without defining it like this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I thought an array can be defined on a model like this:
and that loopback infers the items for the json Schema because it's an array property.
But when our tests run, it throws this error:
"items" property must be present if "type" is an array'
because of
!json.items
on this lineloopback-next/packages/openapi-v3/src/json-to-schema.ts
Line 66 in debd55e
If I change the definition to this, it's fine:
This means changing a lot of properties all across our codebase. This should not be necessary, right? Or is Loopback not able to infer the items property without defining it like this?
Beta Was this translation helpful? Give feedback.
All reactions