Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 2 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,7 @@ jobs:
- name: Check out code
uses: actions/checkout@v2

- name: "test: no change to generated files."
- name: "test: all tests"
run: |
go install github.com/bufbuild/buf/cmd/buf@v1.42.0
./scripts/verify-goldens.sh

- name: "test: example server function"
run: |
./scripts/test_http_api.sh

- name: run OAS api-linter
run: |
./scripts/run-oas-linter.sh

- name: run protobuf api-linter
run: |
./scripts/run-proto-linter.sh
./scripts/test-all.sh
1,222 changes: 611 additions & 611 deletions example/bookstore/v1/bookstore.pb.go

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions example/bookstore/v1/bookstore.proto
Original file line number Diff line number Diff line change
Expand Up @@ -272,11 +272,11 @@ message Book {

// A Author.
message Author {
// Field for first_name.
string first_name = 1 [json_name = "first_name"];
// Field for given_name.
string given_name = 1 [json_name = "given_name"];

// Field for last_name.
string last_name = 2 [json_name = "last_name"];
// Field for family_name.
string family_name = 2 [json_name = "family_name"];
}

// Field for isbn.
Expand Down
8 changes: 4 additions & 4 deletions example/bookstore/v1/bookstore.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1376,13 +1376,13 @@
"BookAuthor": {
"type": "object",
"properties": {
"first_name": {
"given_name": {
"type": "string",
"description": "Field for first_name."
"description": "Field for given_name."
},
"last_name": {
"family_name": {
"type": "string",
"description": "Field for last_name."
"description": "Field for family_name."
}
},
"description": "A Author."
Expand Down
4 changes: 2 additions & 2 deletions example/bookstore/v1/bookstore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ resources:
items:
type: object
properties:
first_name:
given_name:
type: string
x-aep-field-number: 1
last_name:
family_name:
type: string
x-aep-field-number: 2
methods:
Expand Down
8 changes: 4 additions & 4 deletions example/bookstore/v1/bookstore_openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1348,13 +1348,13 @@
"items": {
"type": "object",
"properties": {
"first_name": {
"family_name": {
"type": "string",
"x-aep-field-number": 1
"x-aep-field-number": 2
},
"last_name": {
"given_name": {
"type": "string",
"x-aep-field-number": 2
"x-aep-field-number": 1
}
}
},
Expand Down
8 changes: 4 additions & 4 deletions example/bookstore/v1/bookstore_openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ components:
author:
items:
properties:
first_name:
type: string
x-aep-field-number: 1
last_name:
family_name:
type: string
x-aep-field-number: 2
given_name:
type: string
x-aep-field-number: 1
type: object
type: array
x-aep-field-number: 5
Expand Down
9 changes: 9 additions & 0 deletions scripts/test-all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -ex

SCRIPT_DIR=$(cd "$(dirname "$0")"; pwd)

"${SCRIPT_DIR}"/verify-goldens.sh
"${SCRIPT_DIR}"/test_http_api.sh
"${SCRIPT_DIR}"/run-oas-linter.sh
"${SCRIPT_DIR}"/run-proto-linter.sh