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
exportconstUser=()=>model.entity({id: idType,firstName: model.string(),lastName: model.string(),email: model.email(),posts: model.array(Post),givenLikes: model.array(Like),followers: model.describe(model.array(User),'Users that follows me'),followeds: model.describe(model.array(User),'Users followed by me'),registeredAt: model.datetime(),loginAt: model.datetime(),},{description: 'User of the system'},)
We need a way to specify a description of every field of an object in order to enrich its formal specifications (OpenAPI, GraphQL, etc.).
We can already do it for primitive types as following:
but we can't do it for referenced types:
A suggested syntax to keep the locality of the description to the field and considering technical concerns is the following:
The text was updated successfully, but these errors were encountered: