Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: handle response_body option #406

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
rename packages
  • Loading branch information
Pirellik committed Sep 6, 2023
commit 5f00e0d5c547a6238fb5f920e12d7744479262b7
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Go Actions Status](https://github.com/google/gnostic/workflows/Go/badge.svg)](https://github.com/google/gnostic/actions)
[![Go Actions Status](https://github.com/eqlabs/gnostic/workflows/Go/badge.svg)](https://github.com/eqlabs/gnostic/actions)

# ⨁ gnostic

Expand Down
2 changes: 1 addition & 1 deletion cmd/disco/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ descriptions to OpenAPI.

Installation:

go install github.com/google/gnostic/cmd/disco
go install github.com/eqlabs/gnostic/cmd/disco

Usage:

Expand Down
4 changes: 2 additions & 2 deletions cmd/disco/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (
"github.com/docopt/docopt-go"
"github.com/golang/protobuf/proto"

"github.com/google/gnostic/conversions"
discovery "github.com/google/gnostic/discovery"
"github.com/eqlabs/gnostic/conversions"
discovery "github.com/eqlabs/gnostic/discovery"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion cmd/parse-linter-output/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"os"

lint "github.com/google/gnostic/metrics/lint"
lint "github.com/eqlabs/gnostic/metrics/lint"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion cmd/petstore-builder/petstore-v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
package main

import (
v2 "github.com/google/gnostic/openapiv2"
v2 "github.com/eqlabs/gnostic/openapiv2"
)

func buildDocumentV2() *v2.Document {
Expand Down
2 changes: 1 addition & 1 deletion cmd/petstore-builder/petstore-v3.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
package main

import (
v3 "github.com/google/gnostic/openapiv3"
v3 "github.com/eqlabs/gnostic/openapiv3"
)

func buildDocumentV3() *v3.Document {
Expand Down
2 changes: 1 addition & 1 deletion cmd/protoc-gen-jsonschema/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ JSON Schemas for Protocol Buffer messages.

Installation:

go install github.com/google/gnostic/cmd/protoc-gen-jsonschema
go install github.com/eqlabs/gnostic/cmd/protoc-gen-jsonschema


Usage:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package tests.embedded.message.v1;

import "google/api/annotations.proto";

option go_package = "github.com/google/gnostic/apps/protoc-gen-openapi/examples/tests/embedded/message/v1;message";
option go_package = "github.com/eqlabs/gnostic/apps/protoc-gen-openapi/examples/tests/embedded/message/v1;message";

service Messaging {
rpc UpdateMessage(Message) returns (Message) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package tests.jsonnames.message.v1;

import "google/api/annotations.proto";

option go_package = "github.com/google/gnostic/apps/protoc-gen-openapi/examples/tests/jsonnames/message/v1;message";
option go_package = "github.com/eqlabs/gnostic/apps/protoc-gen-openapi/examples/tests/jsonnames/message/v1;message";

// Messaging service
service Messaging {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import "google/api/field_behavior.proto";
import "google/protobuf/struct.proto";
import "google/protobuf/empty.proto";

option go_package = "github.com/google/gnostic/apps/protoc-gen-openapi/examples/tests/mapfields/message/v1;message";
option go_package = "github.com/eqlabs/gnostic/apps/protoc-gen-openapi/examples/tests/mapfields/message/v1;message";

service Messaging {
rpc UpdateMessage(Message) returns (Message) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import "google/api/annotations.proto";
import "google/protobuf/struct.proto";
import "google/protobuf/empty.proto";

option go_package = "github.com/google/gnostic/apps/protoc-gen-openapi/examples/tests/protobuftypes/message/v1;message";
option go_package = "github.com/eqlabs/gnostic/apps/protoc-gen-openapi/examples/tests/protobuftypes/message/v1;message";

service Messaging {
option (google.api.default_host) = "foo.googleapi.com";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated with protoc-gen-openapi
# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi
# https://github.com/eqlabs/gnostic/tree/master/cmd/protoc-gen-openapi

openapi: 3.0.3
info:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated with protoc-gen-openapi
# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi
# https://github.com/eqlabs/gnostic/tree/master/cmd/protoc-gen-openapi

openapi: 3.0.3
info:
Expand Down
2 changes: 1 addition & 1 deletion cmd/protoc-gen-jsonschema/generator/json-schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"google.golang.org/protobuf/proto"
"google.golang.org/protobuf/reflect/protoreflect"

"github.com/google/gnostic/jsonschema"
"github.com/eqlabs/gnostic/jsonschema"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cmd/protoc-gen-jsonschema/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package main
import (
"flag"

"github.com/google/gnostic/cmd/protoc-gen-jsonschema/generator"
"github.com/eqlabs/gnostic/cmd/protoc-gen-jsonschema/generator"
"google.golang.org/protobuf/compiler/protogen"
"google.golang.org/protobuf/types/pluginpb"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/protoc-gen-openapi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Protocol Buffer service.

Installation:

go install github.com/google/gnostic/cmd/protoc-gen-openapi
go install github.com/eqlabs/gnostic/cmd/protoc-gen-openapi

Usage:

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated with protoc-gen-openapi
# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi
# https://github.com/eqlabs/gnostic/tree/master/cmd/protoc-gen-openapi

openapi: 3.0.3
info:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated with protoc-gen-openapi
# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi
# https://github.com/eqlabs/gnostic/tree/master/cmd/protoc-gen-openapi

openapi: 3.0.3
info:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated with protoc-gen-openapi
# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi
# https://github.com/eqlabs/gnostic/tree/master/cmd/protoc-gen-openapi

openapi: 3.0.3
info:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated with protoc-gen-openapi
# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi
# https://github.com/eqlabs/gnostic/tree/master/cmd/protoc-gen-openapi

openapi: 3.0.3
info:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated with protoc-gen-openapi
# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi
# https://github.com/eqlabs/gnostic/tree/master/cmd/protoc-gen-openapi

openapi: 3.0.3
info:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package tests.additional_bindings.message.v1;

import "google/api/annotations.proto";

option go_package = "github.com/google/gnostic/apps/protoc-gen-openapi/examples/tests/additional_bindings/message/v1;message";
option go_package = "github.com/eqlabs/gnostic/apps/protoc-gen-openapi/examples/tests/additional_bindings/message/v1;message";

service Messaging {
rpc UpdateMessage(Message) returns(Message) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated with protoc-gen-openapi
# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi
# https://github.com/eqlabs/gnostic/tree/master/cmd/protoc-gen-openapi

openapi: 3.0.3
info:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package tests.allofwrap.message.v1;
import "google/api/annotations.proto";
import "google/api/field_behavior.proto";

option go_package = "github.com/google/gnostic/apps/protoc-gen-openapi/examples/tests/bodymapping/message/v1;message";
option go_package = "github.com/eqlabs/gnostic/apps/protoc-gen-openapi/examples/tests/bodymapping/message/v1;message";

service Messaging {
rpc UpdateMessage(Message) returns(Message) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated with protoc-gen-openapi
# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi
# https://github.com/eqlabs/gnostic/tree/master/cmd/protoc-gen-openapi

openapi: 3.0.3
info:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package tests.bodymappying.message.v1;

import "google/api/annotations.proto";

option go_package = "github.com/google/gnostic/apps/protoc-gen-openapi/examples/tests/bodymapping/message/v1;message";
option go_package = "github.com/eqlabs/gnostic/apps/protoc-gen-openapi/examples/tests/bodymapping/message/v1;message";

service Messaging {
rpc UpdateMessage(Message) returns(Message) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated with protoc-gen-openapi
# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi
# https://github.com/eqlabs/gnostic/tree/master/cmd/protoc-gen-openapi

openapi: 3.0.3
info:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated with protoc-gen-openapi
# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi
# https://github.com/eqlabs/gnostic/tree/master/cmd/protoc-gen-openapi

openapi: 3.0.3
info:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated with protoc-gen-openapi
# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi
# https://github.com/eqlabs/gnostic/tree/master/cmd/protoc-gen-openapi

openapi: 3.0.3
info:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated with protoc-gen-openapi
# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi
# https://github.com/eqlabs/gnostic/tree/master/cmd/protoc-gen-openapi

openapi: 3.0.3
info:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated with protoc-gen-openapi
# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi
# https://github.com/eqlabs/gnostic/tree/master/cmd/protoc-gen-openapi

openapi: 3.0.3
info:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package tests.enumoptions.message.v1;

import "google/api/annotations.proto";

option go_package = "github.com/google/gnostic/apps/protoc-gen-openapi/examples/tests/enumoptions/message/v1;message";
option go_package = "github.com/eqlabs/gnostic/apps/protoc-gen-openapi/examples/tests/enumoptions/message/v1;message";

// Messaging service
service Messaging {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated with protoc-gen-openapi
# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi
# https://github.com/eqlabs/gnostic/tree/master/cmd/protoc-gen-openapi

openapi: 3.0.3
info:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated with protoc-gen-openapi
# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi
# https://github.com/eqlabs/gnostic/tree/master/cmd/protoc-gen-openapi

openapi: 3.0.3
info:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated with protoc-gen-openapi
# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi
# https://github.com/eqlabs/gnostic/tree/master/cmd/protoc-gen-openapi

openapi: 3.0.3
info:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated with protoc-gen-openapi
# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi
# https://github.com/eqlabs/gnostic/tree/master/cmd/protoc-gen-openapi

openapi: 3.0.3
info:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated with protoc-gen-openapi
# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi
# https://github.com/eqlabs/gnostic/tree/master/cmd/protoc-gen-openapi

openapi: 3.0.3
info:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package tests.jsonnames.message.v1;

import "google/api/annotations.proto";

option go_package = "github.com/google/gnostic/apps/protoc-gen-openapi/examples/tests/jsonnames/message/v1;message";
option go_package = "github.com/eqlabs/gnostic/apps/protoc-gen-openapi/examples/tests/jsonnames/message/v1;message";

// Messaging service
service Messaging {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated with protoc-gen-openapi
# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi
# https://github.com/eqlabs/gnostic/tree/master/cmd/protoc-gen-openapi

openapi: 3.0.3
info:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated with protoc-gen-openapi
# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi
# https://github.com/eqlabs/gnostic/tree/master/cmd/protoc-gen-openapi

openapi: 3.0.3
info:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated with protoc-gen-openapi
# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi
# https://github.com/eqlabs/gnostic/tree/master/cmd/protoc-gen-openapi

openapi: 3.0.3
info:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated with protoc-gen-openapi
# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi
# https://github.com/eqlabs/gnostic/tree/master/cmd/protoc-gen-openapi

openapi: 3.0.3
info:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated with protoc-gen-openapi
# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi
# https://github.com/eqlabs/gnostic/tree/master/cmd/protoc-gen-openapi

openapi: 3.0.3
info:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package tests.mapfields.message.v1;
import "google/api/annotations.proto";
import "google/protobuf/struct.proto";

option go_package = "github.com/google/gnostic/apps/protoc-gen-openapi/examples/tests/mapfields/message/v1;message";
option go_package = "github.com/eqlabs/gnostic/apps/protoc-gen-openapi/examples/tests/mapfields/message/v1;message";

service Messaging {
rpc UpdateMessage(Message) returns(Message) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated with protoc-gen-openapi
# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi
# https://github.com/eqlabs/gnostic/tree/master/cmd/protoc-gen-openapi

openapi: 3.0.3
info:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated with protoc-gen-openapi
# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi
# https://github.com/eqlabs/gnostic/tree/master/cmd/protoc-gen-openapi

openapi: 3.0.3
info:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated with protoc-gen-openapi
# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi
# https://github.com/eqlabs/gnostic/tree/master/cmd/protoc-gen-openapi

openapi: 3.0.3
info:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated with protoc-gen-openapi
# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi
# https://github.com/eqlabs/gnostic/tree/master/cmd/protoc-gen-openapi

openapi: 3.0.3
info:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated with protoc-gen-openapi
# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi
# https://github.com/eqlabs/gnostic/tree/master/cmd/protoc-gen-openapi

openapi: 3.0.3
info:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package tests.noannotations.message.v1;

import "google/api/annotations.proto";

option go_package = "github.com/google/gnostic/apps/protoc-gen-openapi/examples/tests/noannotations/message/v1;message";
option go_package = "github.com/eqlabs/gnostic/apps/protoc-gen-openapi/examples/tests/noannotations/message/v1;message";

service Messaging1 {
rpc UpdateMessage(Message) returns(Message) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated with protoc-gen-openapi
# https://github.com/google/gnostic/tree/master/cmd/protoc-gen-openapi
# https://github.com/eqlabs/gnostic/tree/master/cmd/protoc-gen-openapi

openapi: 3.0.3
info:
Expand Down
Loading