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
I have tried to troubleshoot this as per issue #36 . But so far never got it working.
I have feathers-swagger working up to displaying Swagger UI and using it to execute get and post for services that does not require authentication.
However after enabling authentication, I got error as per bellow screenshot:
The reply at the end of Issue #35 might have similar problem.
Bellow code is in messages.services.js
const messages = createService(options);
messages.docs = {
description: "A service to send and receive chat messages",
definitions: {
messages: {
type: "object",
required: ["text"],
properties: {
text: {
type: "string",
description: "The message text"
},
userId: {
type: "string",
description: "The id of the user that send the message"
}
}
}
}
};
app.use("/messages", messages);
Does it have something to do with authentication method using local authentication strategy? Or wrong securityDefinitions? Or something change in latest swagger library that I have to specify swagger 2.0?
## Steps to reproduce
I have tried to troubleshoot this as per issue #36 . But so far never got it working.
I have feathers-swagger working up to displaying Swagger UI and using it to execute get and post for services that does not require authentication.
However after enabling authentication, I got error as per bellow screenshot:
The reply at the end of Issue #35 might have similar problem.
Bellow code is in messages.services.js
And this one in app.js
I have created example to demonstrate this issue using feathers-chat repo
Github - feathers-chat-swagger
Expected behavior
As per #36 I did see bellow screen. So something work. But expected get and post for authenticated service to work.
The text was updated successfully, but these errors were encountered: