-
-
Notifications
You must be signed in to change notification settings - Fork 561
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'v3' into dependabot/go_modules/google.golang.org/protob…
…uf-1.32.0
- Loading branch information
Showing
12 changed files
with
196 additions
and
4 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
1 change: 1 addition & 0 deletions
1
http/codegen/openapi/v2/testdata/TestSections/not-generate-attribute_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":""},"host":"goa.design","consumes":["application/json","application/xml","application/gob"],"produces":["application/json","application/xml","application/gob"],"paths":{"/":{"get":{"tags":["testService"],"summary":"testEndpoint testService","operationId":"testService#testEndpoint","parameters":[{"name":"TestEndpointRequestBody","in":"body","required":true,"schema":{"$ref":"#/definitions/TestServiceTestEndpointRequestBody"}}],"responses":{"200":{"description":"OK response.","schema":{"$ref":"#/definitions/TestServiceTestEndpointResponseBody"}}},"schemes":["https"]}}},"definitions":{"TestServiceTestEndpointRequestBody":{"title":"TestServiceTestEndpointRequestBody","type":"object","properties":{"string":{"type":"string","example":""}},"example":{"string":""}},"TestServiceTestEndpointResponseBody":{"title":"TestServiceTestEndpointResponseBody","type":"object","properties":{"int":{"type":"integer","example":0,"format":"int64"}},"example":{"int":0}}}} |
53 changes: 53 additions & 0 deletions
53
http/codegen/openapi/v2/testdata/TestSections/not-generate-attribute_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,53 @@ | ||
swagger: "2.0" | ||
info: | ||
title: "" | ||
version: "" | ||
host: goa.design | ||
consumes: | ||
- application/json | ||
- application/xml | ||
- application/gob | ||
produces: | ||
- application/json | ||
- application/xml | ||
- application/gob | ||
paths: | ||
/: | ||
get: | ||
tags: | ||
- testService | ||
summary: testEndpoint testService | ||
operationId: testService#testEndpoint | ||
parameters: | ||
- name: TestEndpointRequestBody | ||
in: body | ||
required: true | ||
schema: | ||
$ref: '#/definitions/TestServiceTestEndpointRequestBody' | ||
responses: | ||
"200": | ||
description: OK response. | ||
schema: | ||
$ref: '#/definitions/TestServiceTestEndpointResponseBody' | ||
schemes: | ||
- https | ||
definitions: | ||
TestServiceTestEndpointRequestBody: | ||
title: TestServiceTestEndpointRequestBody | ||
type: object | ||
properties: | ||
string: | ||
type: string | ||
example: "" | ||
example: | ||
string: "" | ||
TestServiceTestEndpointResponseBody: | ||
title: TestServiceTestEndpointResponseBody | ||
type: object | ||
properties: | ||
int: | ||
type: integer | ||
example: 0 | ||
format: int64 | ||
example: | ||
int: 0 |
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/v3/testdata/golden/not-generate-attribute_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":"1.0"},"servers":[{"url":"https://goa.design"}],"paths":{"/":{"get":{"tags":["testService"],"summary":"testEndpoint testService","operationId":"testService#testEndpoint","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestEndpointRequestBody"},"example":{"string":""}}}},"responses":{"200":{"description":"OK response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"},"example":{"int":0}}}}}}}},"components":{"schemas":{"Result":{"type":"object","properties":{"int":{"type":"integer","example":0,"format":"int64"}},"example":{"int":0}},"TestEndpointRequestBody":{"type":"object","properties":{"string":{"type":"string","example":""}},"example":{"string":""}}}},"tags":[{"name":"testService"}]} |
51 changes: 51 additions & 0 deletions
51
http/codegen/openapi/v3/testdata/golden/not-generate-attribute_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,51 @@ | ||
openapi: 3.0.3 | ||
info: | ||
title: Goa API | ||
version: "1.0" | ||
servers: | ||
- url: https://goa.design | ||
paths: | ||
/: | ||
get: | ||
tags: | ||
- testService | ||
summary: testEndpoint testService | ||
operationId: testService#testEndpoint | ||
requestBody: | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/TestEndpointRequestBody' | ||
example: | ||
string: "" | ||
responses: | ||
"200": | ||
description: OK response. | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/Result' | ||
example: | ||
int: 0 | ||
components: | ||
schemas: | ||
Result: | ||
type: object | ||
properties: | ||
int: | ||
type: integer | ||
example: 0 | ||
format: int64 | ||
example: | ||
int: 0 | ||
TestEndpointRequestBody: | ||
type: object | ||
properties: | ||
string: | ||
type: string | ||
example: "" | ||
example: | ||
string: "" | ||
tags: | ||
- name: testService |
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