Skip to content

Commit

Permalink
go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dikhan committed Oct 29, 2019
1 parent 92c23f5 commit b646b83
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions openapi/openapi_v2_spec_analyser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,12 +237,12 @@ func Test_getSuccessfulResponseDefinition(t *testing.T) {
Responses: &spec.Responses{
ResponsesProps: spec.ResponsesProps{
StatusCodeResponses: map[int]spec.Response{
http.StatusOK: spec.Response{
http.StatusOK: {
ResponseProps: spec.ResponseProps{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Properties: map[string]spec.Schema{
"id": spec.Schema{
"id": {
SwaggerSchemaProps: spec.SwaggerSchemaProps{
ReadOnly: true,
},
Expand All @@ -255,7 +255,7 @@ func Test_getSuccessfulResponseDefinition(t *testing.T) {
},
},
},
http.StatusNotFound: spec.Response{},
http.StatusNotFound: {},
},
},
},
Expand All @@ -264,7 +264,7 @@ func Test_getSuccessfulResponseDefinition(t *testing.T) {
expectedSchema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Properties: map[string]spec.Schema{
"id": spec.Schema{
"id": {
SwaggerSchemaProps: spec.SwaggerSchemaProps{
ReadOnly: true,
},
Expand All @@ -284,12 +284,12 @@ func Test_getSuccessfulResponseDefinition(t *testing.T) {
Responses: &spec.Responses{
ResponsesProps: spec.ResponsesProps{
StatusCodeResponses: map[int]spec.Response{
http.StatusCreated: spec.Response{
http.StatusCreated: {
ResponseProps: spec.ResponseProps{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Properties: map[string]spec.Schema{
"id": spec.Schema{
"id": {
SwaggerSchemaProps: spec.SwaggerSchemaProps{
ReadOnly: true,
},
Expand All @@ -310,7 +310,7 @@ func Test_getSuccessfulResponseDefinition(t *testing.T) {
expectedSchema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Properties: map[string]spec.Schema{
"id": spec.Schema{
"id": {
SwaggerSchemaProps: spec.SwaggerSchemaProps{
ReadOnly: true,
},
Expand All @@ -330,12 +330,12 @@ func Test_getSuccessfulResponseDefinition(t *testing.T) {
Responses: &spec.Responses{
ResponsesProps: spec.ResponsesProps{
StatusCodeResponses: map[int]spec.Response{
http.StatusAccepted: spec.Response{
http.StatusAccepted: {
ResponseProps: spec.ResponseProps{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Properties: map[string]spec.Schema{
"id": spec.Schema{
"id": {
SwaggerSchemaProps: spec.SwaggerSchemaProps{
ReadOnly: true,
},
Expand All @@ -356,7 +356,7 @@ func Test_getSuccessfulResponseDefinition(t *testing.T) {
expectedSchema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Properties: map[string]spec.Schema{
"id": spec.Schema{
"id": {
SwaggerSchemaProps: spec.SwaggerSchemaProps{
ReadOnly: true,
},
Expand All @@ -376,7 +376,7 @@ func Test_getSuccessfulResponseDefinition(t *testing.T) {
Responses: &spec.Responses{
ResponsesProps: spec.ResponsesProps{
StatusCodeResponses: map[int]spec.Response{
http.StatusOK: spec.Response{
http.StatusOK: {
ResponseProps: spec.ResponseProps{
Schema: nil,
},
Expand All @@ -396,7 +396,7 @@ func Test_getSuccessfulResponseDefinition(t *testing.T) {
Responses: &spec.Responses{
ResponsesProps: spec.ResponsesProps{
StatusCodeResponses: map[int]spec.Response{
http.StatusNotFound: spec.Response{},
http.StatusNotFound: {},
},
},
},
Expand Down

0 comments on commit b646b83

Please sign in to comment.