I tried to implement Swagger UI module in my project based on FeathersJS framework as shown below:
...
messageService.docs = {
description: 'A service to send and receive messages',
definitions: {
messages: {
"type": "object",
"required": [
"text"
],
"properties": {
"text": {
"type": "string",
"description": "The message text"
}
}
}
}
};
const app = feathers()
....
.configure(swagger({
docsPath: '/docs',
info: {
title: 'A test',
description: 'A description'
}
}))
.use('/messages', messageService);
But I got this error message. How can I fix it?
Resolver error at paths./messages.get.responses.200.schema.$ref
Could not resolve reference because of: Could not resolve pointer: /definitions/messages list does not exist in document
I tried to implement Swagger UI module in my project based on FeathersJS framework as shown below:
But I got this error message. How can I fix it?