Skip to content

Commit 332b37e

Browse files
author
Josh
committed
Deprecate host and add servers
1 parent 2cb2e85 commit 332b37e

File tree

8 files changed

+397
-161
lines changed

8 files changed

+397
-161
lines changed

api/oapi/v1/file.pb.go

Lines changed: 55 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/oapi/v1/file.proto

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ package oapi.v1;
44

55
import "google/protobuf/descriptor.proto";
66
import "oapi/v1/security.proto";
7+
import "oapi/v1/server.proto";
78

89
option go_package = "github.com/technicallyjosh/protoc-gen-openapi/api/oapi/v1;oapiv1";
910

@@ -14,17 +15,20 @@ extend google.protobuf.FileOptions {
1415
message FileOptions {
1516
// The default host for all services and methods defined in a file. This can
1617
// be overridden by the service or a method definition.
17-
string host = 1;
18+
string host = 1 [deprecated = true];
1819

1920
// The default prefix for all services and methods in a file. This can be
2021
// overridden by the service or a method definition.
2122
string prefix = 2;
2223

2324
// Security schemes defined in a file. All files will be consolidated into one
2425
// list.
25-
// map<string, SecurityScheme> security_schemes = 3;
2626
repeated SecurityScheme security_schemes = 3;
2727

2828
// Security to be used on all services and routes by default in the file.
2929
repeated Security security = 4;
30+
31+
// The servers to add to the global. These are used on all services and routes
32+
// by default.
33+
repeated Server servers = 5;
3034
}

0 commit comments

Comments
 (0)