Open Luard opened 4 years ago
Typegoose is the "wrapper" I have in a project in order to interact with mongoose.
mongoose
I have some objects that references other objects and on Typegoose it has to be done adding Ref to the object, for example:
Ref
@prop({ ref: Car }) public car?: Ref<Car>;
When generating the swagger.json with typescript-rest-swagger it is crashing. I guess it might happen with other external properties.
typescript-rest-swagger
Is there any way to do this?
I had to use another dependency for swagger but I really like typescript-rest-swagger.
Typegoose Ref info: https://typegoose.github.io/typegoose/docs/api/types/ref-type/
I'm having a similar issue where it is not generating the docs because it doesn't find the referenced type of some property
Have you found any workaround for this? Thanks.
Typegoose is the "wrapper" I have in a project in order to interact with
mongoose
.I have some objects that references other objects and on Typegoose it has to be done adding
Ref
to the object, for example:When generating the swagger.json with
typescript-rest-swagger
it is crashing. I guess it might happen with other external properties.Is there any way to do this?
I had to use another dependency for swagger but I really like
typescript-rest-swagger
.Typegoose Ref info: https://typegoose.github.io/typegoose/docs/api/types/ref-type/