-
-
Notifications
You must be signed in to change notification settings - Fork 554
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
279 additions
and
0 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
1 change: 1 addition & 0 deletions
1
http/codegen/openapi/v2/testdata/TestSections/headers_file0.golden
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 @@ | ||
{"swagger":"2.0","info":{"title":"","version":"0.0.1"},"host":"localhost:80","consumes":["application/json","application/xml","application/gob"],"produces":["application/json","application/xml","application/gob"],"paths":{"/":{"post":{"tags":["test service"],"summary":"test endpoint test service","operationId":"test service#test endpoint","parameters":[{"name":"foo","in":"header","required":false,"type":"integer"},{"name":"bar","in":"header","required":false,"type":"integer"}],"responses":{"204":{"description":"No Content response."}},"schemes":["http"]}}}} |
34 changes: 34 additions & 0 deletions
34
http/codegen/openapi/v2/testdata/TestSections/headers_file1.golden
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,34 @@ | ||
swagger: "2.0" | ||
info: | ||
title: "" | ||
version: 0.0.1 | ||
host: localhost:80 | ||
consumes: | ||
- application/json | ||
- application/xml | ||
- application/gob | ||
produces: | ||
- application/json | ||
- application/xml | ||
- application/gob | ||
paths: | ||
/: | ||
post: | ||
tags: | ||
- test service | ||
summary: test endpoint test service | ||
operationId: test service#test endpoint | ||
parameters: | ||
- name: foo | ||
in: header | ||
required: false | ||
type: integer | ||
- name: bar | ||
in: header | ||
required: false | ||
type: integer | ||
responses: | ||
"204": | ||
description: No Content response. | ||
schemes: | ||
- http |
1 change: 1 addition & 0 deletions
1
...degen/openapi/v2/testdata/TestSections/path-with-multiple-explicit-wildcards_file0.golden
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 @@ | ||
{"swagger":"2.0","info":{"title":"","version":"0.0.1"},"host":"localhost:80","consumes":["application/json","application/xml","application/gob"],"produces":["application/json","application/xml","application/gob"],"paths":{"/{foo}/{bar}":{"post":{"tags":["test service"],"summary":"test endpoint test service","operationId":"test service#test endpoint","parameters":[{"name":"foo","in":"path","required":true,"type":"integer"},{"name":"bar","in":"path","required":true,"type":"integer"}],"responses":{"204":{"description":"No Content response."}},"schemes":["http"]}}}} |
34 changes: 34 additions & 0 deletions
34
...degen/openapi/v2/testdata/TestSections/path-with-multiple-explicit-wildcards_file1.golden
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,34 @@ | ||
swagger: "2.0" | ||
info: | ||
title: "" | ||
version: 0.0.1 | ||
host: localhost:80 | ||
consumes: | ||
- application/json | ||
- application/xml | ||
- application/gob | ||
produces: | ||
- application/json | ||
- application/xml | ||
- application/gob | ||
paths: | ||
/{foo}/{bar}: | ||
post: | ||
tags: | ||
- test service | ||
summary: test endpoint test service | ||
operationId: test service#test endpoint | ||
parameters: | ||
- name: foo | ||
in: path | ||
required: true | ||
type: integer | ||
- name: bar | ||
in: path | ||
required: true | ||
type: integer | ||
responses: | ||
"204": | ||
description: No Content response. | ||
schemes: | ||
- http |
1 change: 1 addition & 0 deletions
1
http/codegen/openapi/v2/testdata/TestSections/path-with-multiple-wildcards_file0.golden
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 @@ | ||
{"swagger":"2.0","info":{"title":"","version":"0.0.1"},"host":"localhost:80","consumes":["application/json","application/xml","application/gob"],"produces":["application/json","application/xml","application/gob"],"paths":{"/{foo}/{bar}":{"post":{"tags":["test service"],"summary":"test endpoint test service","operationId":"test service#test endpoint","parameters":[{"name":"foo","in":"path","required":true,"type":"integer"},{"name":"bar","in":"path","required":true,"type":"integer"}],"responses":{"204":{"description":"No Content response."}},"schemes":["http"]}}}} |
34 changes: 34 additions & 0 deletions
34
http/codegen/openapi/v2/testdata/TestSections/path-with-multiple-wildcards_file1.golden
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,34 @@ | ||
swagger: "2.0" | ||
info: | ||
title: "" | ||
version: 0.0.1 | ||
host: localhost:80 | ||
consumes: | ||
- application/json | ||
- application/xml | ||
- application/gob | ||
produces: | ||
- application/json | ||
- application/xml | ||
- application/gob | ||
paths: | ||
/{foo}/{bar}: | ||
post: | ||
tags: | ||
- test service | ||
summary: test endpoint test service | ||
operationId: test service#test endpoint | ||
parameters: | ||
- name: foo | ||
in: path | ||
required: true | ||
type: integer | ||
- name: bar | ||
in: path | ||
required: true | ||
type: integer | ||
responses: | ||
"204": | ||
description: No Content response. | ||
schemes: | ||
- http |
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 @@ | ||
{"openapi":"3.0.3","info":{"title":"Goa API","version":"0.0.1"},"servers":[{"url":"http://localhost:80","description":"Default server for test api"}],"paths":{"/":{"post":{"tags":["test service"],"summary":"test endpoint test service","operationId":"test service#test endpoint","parameters":[{"name":"foo","in":"header","allowEmptyValue":true,"schema":{"type":"integer","example":9176544974339886224,"format":"int64"},"example":1933576090881074823},{"name":"bar","in":"header","allowEmptyValue":true,"schema":{"type":"integer","example":2166276375441812184,"format":"int64"},"example":7595816812588075382}],"responses":{"204":{"description":"No Content response."}}}}},"components":{},"tags":[{"name":"test service"}]} |
37 changes: 37 additions & 0 deletions
37
http/codegen/openapi/v3/testdata/golden/headers_file1.golden
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,37 @@ | ||
openapi: 3.0.3 | ||
info: | ||
title: Goa API | ||
version: 0.0.1 | ||
servers: | ||
- url: http://localhost:80 | ||
description: Default server for test api | ||
paths: | ||
/: | ||
post: | ||
tags: | ||
- test service | ||
summary: test endpoint test service | ||
operationId: test service#test endpoint | ||
parameters: | ||
- name: foo | ||
in: header | ||
allowEmptyValue: true | ||
schema: | ||
type: integer | ||
example: 9176544974339886224 | ||
format: int64 | ||
example: 1933576090881074823 | ||
- name: bar | ||
in: header | ||
allowEmptyValue: true | ||
schema: | ||
type: integer | ||
example: 2166276375441812184 | ||
format: int64 | ||
example: 7595816812588075382 | ||
responses: | ||
"204": | ||
description: No Content response. | ||
components: {} | ||
tags: | ||
- name: test service |
1 change: 1 addition & 0 deletions
1
http/codegen/openapi/v3/testdata/golden/path-with-multiple-explicit-wildcards_file0.golden
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 @@ | ||
{"openapi":"3.0.3","info":{"title":"Goa API","version":"0.0.1"},"servers":[{"url":"http://localhost:80","description":"Default server for test api"}],"paths":{"/{foo}/{bar}":{"post":{"tags":["test service"],"summary":"test endpoint test service","operationId":"test service#test endpoint","parameters":[{"name":"foo","in":"path","required":true,"schema":{"type":"integer","example":9176544974339886224,"format":"int64"},"example":1933576090881074823},{"name":"bar","in":"path","required":true,"schema":{"type":"integer","example":2166276375441812184,"format":"int64"},"example":7595816812588075382}],"responses":{"204":{"description":"No Content response."}}}}},"components":{},"tags":[{"name":"test service"}]} |
37 changes: 37 additions & 0 deletions
37
http/codegen/openapi/v3/testdata/golden/path-with-multiple-explicit-wildcards_file1.golden
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,37 @@ | ||
openapi: 3.0.3 | ||
info: | ||
title: Goa API | ||
version: 0.0.1 | ||
servers: | ||
- url: http://localhost:80 | ||
description: Default server for test api | ||
paths: | ||
/{foo}/{bar}: | ||
post: | ||
tags: | ||
- test service | ||
summary: test endpoint test service | ||
operationId: test service#test endpoint | ||
parameters: | ||
- name: foo | ||
in: path | ||
required: true | ||
schema: | ||
type: integer | ||
example: 9176544974339886224 | ||
format: int64 | ||
example: 1933576090881074823 | ||
- name: bar | ||
in: path | ||
required: true | ||
schema: | ||
type: integer | ||
example: 2166276375441812184 | ||
format: int64 | ||
example: 7595816812588075382 | ||
responses: | ||
"204": | ||
description: No Content response. | ||
components: {} | ||
tags: | ||
- name: test service |
1 change: 1 addition & 0 deletions
1
http/codegen/openapi/v3/testdata/golden/path-with-multiple-wildcards_file0.golden
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 @@ | ||
{"openapi":"3.0.3","info":{"title":"Goa API","version":"0.0.1"},"servers":[{"url":"http://localhost:80","description":"Default server for test api"}],"paths":{"/{foo}/{bar}":{"post":{"tags":["test service"],"summary":"test endpoint test service","operationId":"test service#test endpoint","parameters":[{"name":"foo","in":"path","required":true,"schema":{"type":"integer","example":9176544974339886224,"format":"int64"},"example":1933576090881074823},{"name":"bar","in":"path","required":true,"schema":{"type":"integer","example":2166276375441812184,"format":"int64"},"example":7595816812588075382}],"responses":{"204":{"description":"No Content response."}}}}},"components":{},"tags":[{"name":"test service"}]} |
37 changes: 37 additions & 0 deletions
37
http/codegen/openapi/v3/testdata/golden/path-with-multiple-wildcards_file1.golden
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,37 @@ | ||
openapi: 3.0.3 | ||
info: | ||
title: Goa API | ||
version: 0.0.1 | ||
servers: | ||
- url: http://localhost:80 | ||
description: Default server for test api | ||
paths: | ||
/{foo}/{bar}: | ||
post: | ||
tags: | ||
- test service | ||
summary: test endpoint test service | ||
operationId: test service#test endpoint | ||
parameters: | ||
- name: foo | ||
in: path | ||
required: true | ||
schema: | ||
type: integer | ||
example: 9176544974339886224 | ||
format: int64 | ||
example: 1933576090881074823 | ||
- name: bar | ||
in: path | ||
required: true | ||
schema: | ||
type: integer | ||
example: 2166276375441812184 | ||
format: int64 | ||
example: 7595816812588075382 | ||
responses: | ||
"204": | ||
description: No Content response. | ||
components: {} | ||
tags: | ||
- name: test service |
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