Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate responses #34

Closed
LaurentiuTanase opened this issue Sep 16, 2019 · 2 comments
Closed

Duplicate responses #34

LaurentiuTanase opened this issue Sep 16, 2019 · 2 comments

Comments

@LaurentiuTanase
Copy link

LaurentiuTanase commented Sep 16, 2019

Hi!

I have a swagger.json file that responds with the same response:
The response for this get:
"/comments": {
"get": {
"summary": "Get Comments",
"description": "Get the comments based on data",
"operationId": "getComments",
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "Successful operation",
"headers": {},
"schema": {
"$ref": "#/definitions/CommentResponse"
},
"examples": {
"application/json" : "{\n"results" : 1, \n"items" : [\n\t{\n\t"id" : 1,\n\t"user" : "user",\n\t"creationTimestamp" : "2019-09-13T14:32:35.203Z",\n\t"content" : "This is a comment"]}"
}
},

Is exactly as the one for the following:
"/comments/users": {
"get": {
"summary": "Get all users",
"operationId": "getUsers",
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "Successful operation",
"schema": {
"$ref": "#/definitions/UsersResponse"
},
"examples": {
"application/json" : "{\n"results" : 4, \n"items" : [\n\t{\n\t\t "name" : "user1" \n\t},\n\t{ \n\t\t "name" : "user2" \n\t}, \n\t{ \n\t\t "name" : "user3" \n\t}, \n\t{ \n\t\t"name" : "user4" \n\t}"
}
},

I didn't used any groovy scripts or something else. Only one -config file to get the swagger.json file and one docker-compose to run the docker image.

Any ideas why this is happenning?

@outofcoffee
Copy link
Owner

outofcoffee commented Oct 20, 2019

Hi @LaurentiuTanase please could you share the URL you’re hitting, full Swagger file and config file here?

@outofcoffee
Copy link
Owner

Hi @LaurentiuTanase I'm closing this for now, but please feel free to provide more information if/when you can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants