forked from swaggo/swag
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stable renaming to fix issue swaggo#745; uncapitalize tow members of …
…parser (swaggo#746) * stable renaming to fix issue 745; uncapitalize tow members of parser * optimize * stable renaming to fix issue 745; * const
- Loading branch information
Showing
9 changed files
with
279 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package api | ||
|
||
import ( | ||
_ "github.com/swaggo/swag/testdata/conflict_name/model" | ||
"net/http" | ||
) | ||
|
||
// @Tags Health | ||
// @Description Check if Health of service it's OK! | ||
// @ID health | ||
// @Accept json | ||
// @Produce json | ||
// @Success 200 {object} model.ErrorsResponse | ||
// @Router /health [get] | ||
func Get1(w http.ResponseWriter, r *http.Request) { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package api | ||
|
||
import ( | ||
_ "github.com/swaggo/swag/testdata/conflict_name/model2" | ||
"net/http" | ||
) | ||
|
||
// @Tags Health | ||
// @Description Check if Health of service it's OK! | ||
// @ID health2 | ||
// @Accept json | ||
// @Produce json | ||
// @Success 200 {object} model.ErrorsResponse | ||
// @Router /health2 [get] | ||
func Get2(w http.ResponseWriter, r *http.Request) { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"description": "test for conflict name", | ||
"title": "Swag test", | ||
"contact": {}, | ||
"license": {}, | ||
"version": "1.0" | ||
}, | ||
"paths": { | ||
"/health": { | ||
"get": { | ||
"description": "Check if Health of service it's OK!", | ||
"consumes": [ | ||
"application/json" | ||
], | ||
"produces": [ | ||
"application/json" | ||
], | ||
"tags": [ | ||
"Health" | ||
], | ||
"operationId": "health", | ||
"responses": { | ||
"200": { | ||
"description": "OK", | ||
"schema": { | ||
"$ref": "#/definitions/github.com_swaggo_swag_testdata_conflict_name_model.ErrorsResponse" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"/health2": { | ||
"get": { | ||
"description": "Check if Health of service it's OK!", | ||
"consumes": [ | ||
"application/json" | ||
], | ||
"produces": [ | ||
"application/json" | ||
], | ||
"tags": [ | ||
"Health" | ||
], | ||
"operationId": "health2", | ||
"responses": { | ||
"200": { | ||
"description": "OK", | ||
"schema": { | ||
"$ref": "#/definitions/github.com_swaggo_swag_testdata_conflict_name_model2.ErrorsResponse" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"definitions": { | ||
"github.com_swaggo_swag_testdata_conflict_name_model.ErrorsResponse": { | ||
"type": "object", | ||
"properties": { | ||
"newTime": { | ||
"$ref": "#/definitions/model.MyPayload" | ||
} | ||
} | ||
}, | ||
"github.com_swaggo_swag_testdata_conflict_name_model.MyStruct": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"github.com_swaggo_swag_testdata_conflict_name_model2.ErrorsResponse": { | ||
"type": "object", | ||
"properties": { | ||
"newTime": { | ||
"$ref": "#/definitions/model.MyPayload2" | ||
} | ||
} | ||
}, | ||
"github.com_swaggo_swag_testdata_conflict_name_model2.MyStruct": { | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"model.MyPayload": { | ||
"type": "object", | ||
"properties": { | ||
"my": { | ||
"$ref": "#/definitions/github.com_swaggo_swag_testdata_conflict_name_model.MyStruct" | ||
}, | ||
"name": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"model.MyPayload2": { | ||
"type": "object", | ||
"properties": { | ||
"my": { | ||
"$ref": "#/definitions/github.com_swaggo_swag_testdata_conflict_name_model2.MyStruct" | ||
}, | ||
"name": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.