Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
d14e66da
Unverified
Commit
d14e66da
authored
Dec 15, 2025
by
Johnny
Committed by
GitHub
Dec 15, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: openapi generation (#5349)
parent
8659f69d
Changes
24
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
3142 additions
and
3396 deletions
+3142
-3396
buf.gen.yaml
proto/buf.gen.yaml
+1
-10
activity_service.pb.go
proto/gen/api/v1/activity_service.pb.go
+1
-1
attachment_service.pb.go
proto/gen/api/v1/attachment_service.pb.go
+1
-1
auth_service.pb.go
proto/gen/api/v1/auth_service.pb.go
+1
-1
common.pb.go
proto/gen/api/v1/common.pb.go
+1
-1
idp_service.pb.go
proto/gen/api/v1/idp_service.pb.go
+1
-1
instance_service.pb.go
proto/gen/api/v1/instance_service.pb.go
+1
-1
memo_service.pb.go
proto/gen/api/v1/memo_service.pb.go
+1
-1
shortcut_service.pb.go
proto/gen/api/v1/shortcut_service.pb.go
+1
-1
user_service.pb.go
proto/gen/api/v1/user_service.pb.go
+1
-1
annotations.pb.go
proto/gen/google/api/annotations.pb.go
+0
-105
client.pb.go
proto/gen/google/api/client.pb.go
+0
-1691
field_behavior.pb.go
proto/gen/google/api/field_behavior.pb.go
+0
-252
http.pb.go
proto/gen/google/api/http.pb.go
+0
-718
resource.pb.go
proto/gen/google/api/resource.pb.go
+0
-592
openapi.yaml
proto/gen/openapi.yaml
+3125
-2
activity.pb.go
proto/gen/store/activity.pb.go
+1
-1
attachment.pb.go
proto/gen/store/attachment.pb.go
+1
-1
idp.pb.go
proto/gen/store/idp.pb.go
+1
-1
inbox.pb.go
proto/gen/store/inbox.pb.go
+1
-1
instance_setting.pb.go
proto/gen/store/instance_setting.pb.go
+1
-1
memo.pb.go
proto/gen/store/memo.pb.go
+1
-1
user_setting.pb.go
proto/gen/store/user_setting.pb.go
+1
-1
acl_config_test.go
server/router/api/v1/acl_config_test.go
+0
-10
No files found.
proto/buf.gen.yaml
View file @
d14e66da
...
@@ -7,15 +7,6 @@ managed:
...
@@ -7,15 +7,6 @@ managed:
override
:
override
:
-
file_option
:
go_package_prefix
-
file_option
:
go_package_prefix
value
:
github.com/usememos/memos/proto/gen
value
:
github.com/usememos/memos/proto/gen
inputs
:
-
directory
:
.
-
module
:
buf.build/googleapis/googleapis
paths
:
-
google/api/annotations.proto
-
google/api/client.proto
-
google/api/field_behavior.proto
-
google/api/http.proto
-
google/api/resource.proto
plugins
:
plugins
:
-
remote
:
buf.build/protocolbuffers/go
-
remote
:
buf.build/protocolbuffers/go
out
:
gen
out
:
gen
...
@@ -31,7 +22,7 @@ plugins:
...
@@ -31,7 +22,7 @@ plugins:
opt
:
paths=source_relative
opt
:
paths=source_relative
-
remote
:
buf.build/community/google-gnostic-openapi
-
remote
:
buf.build/community/google-gnostic-openapi
out
:
gen
out
:
gen
opt
:
paths=source_relative,
enum_type=string
opt
:
enum_type=string
-
remote
:
buf.build/bufbuild/es
-
remote
:
buf.build/bufbuild/es
out
:
../web/src/types/proto
out
:
../web/src/types/proto
opt
:
opt
:
...
...
proto/gen/api/v1/activity_service.pb.go
View file @
d14e66da
// Code generated by protoc-gen-go. DO NOT EDIT.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// versions:
// protoc-gen-go v1.36.1
0
// protoc-gen-go v1.36.1
1
// protoc (unknown)
// protoc (unknown)
// source: api/v1/activity_service.proto
// source: api/v1/activity_service.proto
...
...
proto/gen/api/v1/attachment_service.pb.go
View file @
d14e66da
// Code generated by protoc-gen-go. DO NOT EDIT.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// versions:
// protoc-gen-go v1.36.1
0
// protoc-gen-go v1.36.1
1
// protoc (unknown)
// protoc (unknown)
// source: api/v1/attachment_service.proto
// source: api/v1/attachment_service.proto
...
...
proto/gen/api/v1/auth_service.pb.go
View file @
d14e66da
// Code generated by protoc-gen-go. DO NOT EDIT.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// versions:
// protoc-gen-go v1.36.1
0
// protoc-gen-go v1.36.1
1
// protoc (unknown)
// protoc (unknown)
// source: api/v1/auth_service.proto
// source: api/v1/auth_service.proto
...
...
proto/gen/api/v1/common.pb.go
View file @
d14e66da
// Code generated by protoc-gen-go. DO NOT EDIT.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// versions:
// protoc-gen-go v1.36.1
0
// protoc-gen-go v1.36.1
1
// protoc (unknown)
// protoc (unknown)
// source: api/v1/common.proto
// source: api/v1/common.proto
...
...
proto/gen/api/v1/idp_service.pb.go
View file @
d14e66da
// Code generated by protoc-gen-go. DO NOT EDIT.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// versions:
// protoc-gen-go v1.36.1
0
// protoc-gen-go v1.36.1
1
// protoc (unknown)
// protoc (unknown)
// source: api/v1/idp_service.proto
// source: api/v1/idp_service.proto
...
...
proto/gen/api/v1/instance_service.pb.go
View file @
d14e66da
// Code generated by protoc-gen-go. DO NOT EDIT.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// versions:
// protoc-gen-go v1.36.1
0
// protoc-gen-go v1.36.1
1
// protoc (unknown)
// protoc (unknown)
// source: api/v1/instance_service.proto
// source: api/v1/instance_service.proto
...
...
proto/gen/api/v1/memo_service.pb.go
View file @
d14e66da
// Code generated by protoc-gen-go. DO NOT EDIT.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// versions:
// protoc-gen-go v1.36.1
0
// protoc-gen-go v1.36.1
1
// protoc (unknown)
// protoc (unknown)
// source: api/v1/memo_service.proto
// source: api/v1/memo_service.proto
...
...
proto/gen/api/v1/shortcut_service.pb.go
View file @
d14e66da
// Code generated by protoc-gen-go. DO NOT EDIT.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// versions:
// protoc-gen-go v1.36.1
0
// protoc-gen-go v1.36.1
1
// protoc (unknown)
// protoc (unknown)
// source: api/v1/shortcut_service.proto
// source: api/v1/shortcut_service.proto
...
...
proto/gen/api/v1/user_service.pb.go
View file @
d14e66da
// Code generated by protoc-gen-go. DO NOT EDIT.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// versions:
// protoc-gen-go v1.36.1
0
// protoc-gen-go v1.36.1
1
// protoc (unknown)
// protoc (unknown)
// source: api/v1/user_service.proto
// source: api/v1/user_service.proto
...
...
proto/gen/google/api/annotations.pb.go
deleted
100644 → 0
View file @
8659f69d
// Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.10
// protoc (unknown)
// source: google/api/annotations.proto
package
annotations
import
(
protoreflect
"google.golang.org/protobuf/reflect/protoreflect"
protoimpl
"google.golang.org/protobuf/runtime/protoimpl"
descriptorpb
"google.golang.org/protobuf/types/descriptorpb"
reflect
"reflect"
unsafe
"unsafe"
)
const
(
// Verify that this generated code is sufficiently up-to-date.
_
=
protoimpl
.
EnforceVersion
(
20
-
protoimpl
.
MinVersion
)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_
=
protoimpl
.
EnforceVersion
(
protoimpl
.
MaxVersion
-
20
)
)
var
file_google_api_annotations_proto_extTypes
=
[]
protoimpl
.
ExtensionInfo
{
{
ExtendedType
:
(
*
descriptorpb
.
MethodOptions
)(
nil
),
ExtensionType
:
(
*
HttpRule
)(
nil
),
Field
:
72295728
,
Name
:
"google.api.http"
,
Tag
:
"bytes,72295728,opt,name=http"
,
Filename
:
"google/api/annotations.proto"
,
},
}
// Extension fields to descriptorpb.MethodOptions.
var
(
// See `HttpRule`.
//
// optional google.api.HttpRule http = 72295728;
E_Http
=
&
file_google_api_annotations_proto_extTypes
[
0
]
)
var
File_google_api_annotations_proto
protoreflect
.
FileDescriptor
const
file_google_api_annotations_proto_rawDesc
=
""
+
"
\n
"
+
"
\x1c
google/api/annotations.proto
\x12\n
"
+
"google.api
\x1a\x15
google/api/http.proto
\x1a
google/protobuf/descriptor.proto:K
\n
"
+
"
\x04
http
\x12\x1e
.google.protobuf.MethodOptions
\x18\xb0
ʼ
\"
\x01
(
\v
2
\x14
.google.api.HttpRuleR
\x04
httpB
\xae\x01\n
"
+
"
\x0e
com.google.apiB
\x10
AnnotationsProtoP
\x01
ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations
\xa2\x02\x03
GAX
\xaa\x02\n
"
+
"Google.Api
\xca\x02\n
"
+
"Google
\\
Api
\xe2\x02\x16
Google
\\
Api
\\
GPBMetadata
\xea\x02\v
Google::Apib
\x06
proto3"
var
file_google_api_annotations_proto_goTypes
=
[]
any
{
(
*
descriptorpb
.
MethodOptions
)(
nil
),
// 0: google.protobuf.MethodOptions
(
*
HttpRule
)(
nil
),
// 1: google.api.HttpRule
}
var
file_google_api_annotations_proto_depIdxs
=
[]
int32
{
0
,
// 0: google.api.http:extendee -> google.protobuf.MethodOptions
1
,
// 1: google.api.http:type_name -> google.api.HttpRule
2
,
// [2:2] is the sub-list for method output_type
2
,
// [2:2] is the sub-list for method input_type
1
,
// [1:2] is the sub-list for extension type_name
0
,
// [0:1] is the sub-list for extension extendee
0
,
// [0:0] is the sub-list for field type_name
}
func
init
()
{
file_google_api_annotations_proto_init
()
}
func
file_google_api_annotations_proto_init
()
{
if
File_google_api_annotations_proto
!=
nil
{
return
}
file_google_api_http_proto_init
()
type
x
struct
{}
out
:=
protoimpl
.
TypeBuilder
{
File
:
protoimpl
.
DescBuilder
{
GoPackagePath
:
reflect
.
TypeOf
(
x
{})
.
PkgPath
(),
RawDescriptor
:
unsafe
.
Slice
(
unsafe
.
StringData
(
file_google_api_annotations_proto_rawDesc
),
len
(
file_google_api_annotations_proto_rawDesc
)),
NumEnums
:
0
,
NumMessages
:
0
,
NumExtensions
:
1
,
NumServices
:
0
,
},
GoTypes
:
file_google_api_annotations_proto_goTypes
,
DependencyIndexes
:
file_google_api_annotations_proto_depIdxs
,
ExtensionInfos
:
file_google_api_annotations_proto_extTypes
,
}
.
Build
()
File_google_api_annotations_proto
=
out
.
File
file_google_api_annotations_proto_goTypes
=
nil
file_google_api_annotations_proto_depIdxs
=
nil
}
proto/gen/google/api/client.pb.go
deleted
100644 → 0
View file @
8659f69d
This diff is collapsed.
Click to expand it.
proto/gen/google/api/field_behavior.pb.go
deleted
100644 → 0
View file @
8659f69d
// Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.10
// protoc (unknown)
// source: google/api/field_behavior.proto
package
annotations
import
(
protoreflect
"google.golang.org/protobuf/reflect/protoreflect"
protoimpl
"google.golang.org/protobuf/runtime/protoimpl"
descriptorpb
"google.golang.org/protobuf/types/descriptorpb"
reflect
"reflect"
sync
"sync"
unsafe
"unsafe"
)
const
(
// Verify that this generated code is sufficiently up-to-date.
_
=
protoimpl
.
EnforceVersion
(
20
-
protoimpl
.
MinVersion
)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_
=
protoimpl
.
EnforceVersion
(
protoimpl
.
MaxVersion
-
20
)
)
// An indicator of the behavior of a given field (for example, that a field
// is required in requests, or given as output but ignored as input).
// This **does not** change the behavior in protocol buffers itself; it only
// denotes the behavior and may affect how API tooling handles the field.
//
// Note: This enum **may** receive new values in the future.
type
FieldBehavior
int32
const
(
// Conventional default for enums. Do not use this.
FieldBehavior_FIELD_BEHAVIOR_UNSPECIFIED
FieldBehavior
=
0
// Specifically denotes a field as optional.
// While all fields in protocol buffers are optional, this may be specified
// for emphasis if appropriate.
FieldBehavior_OPTIONAL
FieldBehavior
=
1
// Denotes a field as required.
// This indicates that the field **must** be provided as part of the request,
// and failure to do so will cause an error (usually `INVALID_ARGUMENT`).
FieldBehavior_REQUIRED
FieldBehavior
=
2
// Denotes a field as output only.
// This indicates that the field is provided in responses, but including the
// field in a request does nothing (the server *must* ignore it and
// *must not* throw an error as a result of the field's presence).
FieldBehavior_OUTPUT_ONLY
FieldBehavior
=
3
// Denotes a field as input only.
// This indicates that the field is provided in requests, and the
// corresponding field is not included in output.
FieldBehavior_INPUT_ONLY
FieldBehavior
=
4
// Denotes a field as immutable.
// This indicates that the field may be set once in a request to create a
// resource, but may not be changed thereafter.
FieldBehavior_IMMUTABLE
FieldBehavior
=
5
// Denotes that a (repeated) field is an unordered list.
// This indicates that the service may provide the elements of the list
// in any arbitrary order, rather than the order the user originally
// provided. Additionally, the list's order may or may not be stable.
FieldBehavior_UNORDERED_LIST
FieldBehavior
=
6
// Denotes that this field returns a non-empty default value if not set.
// This indicates that if the user provides the empty value in a request,
// a non-empty value will be returned. The user will not be aware of what
// non-empty value to expect.
FieldBehavior_NON_EMPTY_DEFAULT
FieldBehavior
=
7
// Denotes that the field in a resource (a message annotated with
// google.api.resource) is used in the resource name to uniquely identify the
// resource. For AIP-compliant APIs, this should only be applied to the
// `name` field on the resource.
//
// This behavior should not be applied to references to other resources within
// the message.
//
// The identifier field of resources often have different field behavior
// depending on the request it is embedded in (e.g. for Create methods name
// is optional and unused, while for Update methods it is required). Instead
// of method-specific annotations, only `IDENTIFIER` is required.
FieldBehavior_IDENTIFIER
FieldBehavior
=
8
)
// Enum value maps for FieldBehavior.
var
(
FieldBehavior_name
=
map
[
int32
]
string
{
0
:
"FIELD_BEHAVIOR_UNSPECIFIED"
,
1
:
"OPTIONAL"
,
2
:
"REQUIRED"
,
3
:
"OUTPUT_ONLY"
,
4
:
"INPUT_ONLY"
,
5
:
"IMMUTABLE"
,
6
:
"UNORDERED_LIST"
,
7
:
"NON_EMPTY_DEFAULT"
,
8
:
"IDENTIFIER"
,
}
FieldBehavior_value
=
map
[
string
]
int32
{
"FIELD_BEHAVIOR_UNSPECIFIED"
:
0
,
"OPTIONAL"
:
1
,
"REQUIRED"
:
2
,
"OUTPUT_ONLY"
:
3
,
"INPUT_ONLY"
:
4
,
"IMMUTABLE"
:
5
,
"UNORDERED_LIST"
:
6
,
"NON_EMPTY_DEFAULT"
:
7
,
"IDENTIFIER"
:
8
,
}
)
func
(
x
FieldBehavior
)
Enum
()
*
FieldBehavior
{
p
:=
new
(
FieldBehavior
)
*
p
=
x
return
p
}
func
(
x
FieldBehavior
)
String
()
string
{
return
protoimpl
.
X
.
EnumStringOf
(
x
.
Descriptor
(),
protoreflect
.
EnumNumber
(
x
))
}
func
(
FieldBehavior
)
Descriptor
()
protoreflect
.
EnumDescriptor
{
return
file_google_api_field_behavior_proto_enumTypes
[
0
]
.
Descriptor
()
}
func
(
FieldBehavior
)
Type
()
protoreflect
.
EnumType
{
return
&
file_google_api_field_behavior_proto_enumTypes
[
0
]
}
func
(
x
FieldBehavior
)
Number
()
protoreflect
.
EnumNumber
{
return
protoreflect
.
EnumNumber
(
x
)
}
// Deprecated: Use FieldBehavior.Descriptor instead.
func
(
FieldBehavior
)
EnumDescriptor
()
([]
byte
,
[]
int
)
{
return
file_google_api_field_behavior_proto_rawDescGZIP
(),
[]
int
{
0
}
}
var
file_google_api_field_behavior_proto_extTypes
=
[]
protoimpl
.
ExtensionInfo
{
{
ExtendedType
:
(
*
descriptorpb
.
FieldOptions
)(
nil
),
ExtensionType
:
([]
FieldBehavior
)(
nil
),
Field
:
1052
,
Name
:
"google.api.field_behavior"
,
Tag
:
"varint,1052,rep,name=field_behavior,enum=google.api.FieldBehavior"
,
Filename
:
"google/api/field_behavior.proto"
,
},
}
// Extension fields to descriptorpb.FieldOptions.
var
(
// A designation of a specific field behavior (required, output only, etc.)
// in protobuf messages.
//
// Examples:
//
// string name = 1 [(google.api.field_behavior) = REQUIRED];
// State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
// google.protobuf.Duration ttl = 1
// [(google.api.field_behavior) = INPUT_ONLY];
// google.protobuf.Timestamp expire_time = 1
// [(google.api.field_behavior) = OUTPUT_ONLY,
// (google.api.field_behavior) = IMMUTABLE];
//
// repeated google.api.FieldBehavior field_behavior = 1052;
E_FieldBehavior
=
&
file_google_api_field_behavior_proto_extTypes
[
0
]
)
var
File_google_api_field_behavior_proto
protoreflect
.
FileDescriptor
const
file_google_api_field_behavior_proto_rawDesc
=
""
+
"
\n
"
+
"
\x1f
google/api/field_behavior.proto
\x12\n
"
+
"google.api
\x1a
google/protobuf/descriptor.proto*
\xb6\x01\n
"
+
"
\r
FieldBehavior
\x12\x1e\n
"
+
"
\x1a
FIELD_BEHAVIOR_UNSPECIFIED
\x10\x00\x12\f\n
"
+
"
\b
OPTIONAL
\x10\x01\x12\f\n
"
+
"
\b
REQUIRED
\x10\x02\x12\x0f\n
"
+
"
\v
OUTPUT_ONLY
\x10\x03\x12\x0e\n
"
+
"
\n
"
+
"INPUT_ONLY
\x10\x04\x12\r\n
"
+
"
\t
IMMUTABLE
\x10\x05\x12\x12\n
"
+
"
\x0e
UNORDERED_LIST
\x10\x06\x12\x15\n
"
+
"
\x11
NON_EMPTY_DEFAULT
\x10\a\x12\x0e\n
"
+
"
\n
"
+
"IDENTIFIER
\x10\b
:d
\n
"
+
"
\x0e
field_behavior
\x12\x1d
.google.protobuf.FieldOptions
\x18\x9c\b
\x03
(
\x0e
2
\x19
.google.api.FieldBehaviorB
\x02\x10\x00
R
\r
fieldBehaviorB
\xb0\x01\n
"
+
"
\x0e
com.google.apiB
\x12
FieldBehaviorProtoP
\x01
ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations
\xa2\x02\x03
GAX
\xaa\x02\n
"
+
"Google.Api
\xca\x02\n
"
+
"Google
\\
Api
\xe2\x02\x16
Google
\\
Api
\\
GPBMetadata
\xea\x02\v
Google::Apib
\x06
proto3"
var
(
file_google_api_field_behavior_proto_rawDescOnce
sync
.
Once
file_google_api_field_behavior_proto_rawDescData
[]
byte
)
func
file_google_api_field_behavior_proto_rawDescGZIP
()
[]
byte
{
file_google_api_field_behavior_proto_rawDescOnce
.
Do
(
func
()
{
file_google_api_field_behavior_proto_rawDescData
=
protoimpl
.
X
.
CompressGZIP
(
unsafe
.
Slice
(
unsafe
.
StringData
(
file_google_api_field_behavior_proto_rawDesc
),
len
(
file_google_api_field_behavior_proto_rawDesc
)))
})
return
file_google_api_field_behavior_proto_rawDescData
}
var
file_google_api_field_behavior_proto_enumTypes
=
make
([]
protoimpl
.
EnumInfo
,
1
)
var
file_google_api_field_behavior_proto_goTypes
=
[]
any
{
(
FieldBehavior
)(
0
),
// 0: google.api.FieldBehavior
(
*
descriptorpb
.
FieldOptions
)(
nil
),
// 1: google.protobuf.FieldOptions
}
var
file_google_api_field_behavior_proto_depIdxs
=
[]
int32
{
1
,
// 0: google.api.field_behavior:extendee -> google.protobuf.FieldOptions
0
,
// 1: google.api.field_behavior:type_name -> google.api.FieldBehavior
2
,
// [2:2] is the sub-list for method output_type
2
,
// [2:2] is the sub-list for method input_type
1
,
// [1:2] is the sub-list for extension type_name
0
,
// [0:1] is the sub-list for extension extendee
0
,
// [0:0] is the sub-list for field type_name
}
func
init
()
{
file_google_api_field_behavior_proto_init
()
}
func
file_google_api_field_behavior_proto_init
()
{
if
File_google_api_field_behavior_proto
!=
nil
{
return
}
type
x
struct
{}
out
:=
protoimpl
.
TypeBuilder
{
File
:
protoimpl
.
DescBuilder
{
GoPackagePath
:
reflect
.
TypeOf
(
x
{})
.
PkgPath
(),
RawDescriptor
:
unsafe
.
Slice
(
unsafe
.
StringData
(
file_google_api_field_behavior_proto_rawDesc
),
len
(
file_google_api_field_behavior_proto_rawDesc
)),
NumEnums
:
1
,
NumMessages
:
0
,
NumExtensions
:
1
,
NumServices
:
0
,
},
GoTypes
:
file_google_api_field_behavior_proto_goTypes
,
DependencyIndexes
:
file_google_api_field_behavior_proto_depIdxs
,
EnumInfos
:
file_google_api_field_behavior_proto_enumTypes
,
ExtensionInfos
:
file_google_api_field_behavior_proto_extTypes
,
}
.
Build
()
File_google_api_field_behavior_proto
=
out
.
File
file_google_api_field_behavior_proto_goTypes
=
nil
file_google_api_field_behavior_proto_depIdxs
=
nil
}
proto/gen/google/api/http.pb.go
deleted
100644 → 0
View file @
8659f69d
This diff is collapsed.
Click to expand it.
proto/gen/google/api/resource.pb.go
deleted
100644 → 0
View file @
8659f69d
This diff is collapsed.
Click to expand it.
proto/gen/openapi.yaml
View file @
d14e66da
This diff is collapsed.
Click to expand it.
proto/gen/store/activity.pb.go
View file @
d14e66da
// Code generated by protoc-gen-go. DO NOT EDIT.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// versions:
// protoc-gen-go v1.36.1
0
// protoc-gen-go v1.36.1
1
// protoc (unknown)
// protoc (unknown)
// source: store/activity.proto
// source: store/activity.proto
...
...
proto/gen/store/attachment.pb.go
View file @
d14e66da
// Code generated by protoc-gen-go. DO NOT EDIT.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// versions:
// protoc-gen-go v1.36.1
0
// protoc-gen-go v1.36.1
1
// protoc (unknown)
// protoc (unknown)
// source: store/attachment.proto
// source: store/attachment.proto
...
...
proto/gen/store/idp.pb.go
View file @
d14e66da
// Code generated by protoc-gen-go. DO NOT EDIT.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// versions:
// protoc-gen-go v1.36.1
0
// protoc-gen-go v1.36.1
1
// protoc (unknown)
// protoc (unknown)
// source: store/idp.proto
// source: store/idp.proto
...
...
proto/gen/store/inbox.pb.go
View file @
d14e66da
// Code generated by protoc-gen-go. DO NOT EDIT.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// versions:
// protoc-gen-go v1.36.1
0
// protoc-gen-go v1.36.1
1
// protoc (unknown)
// protoc (unknown)
// source: store/inbox.proto
// source: store/inbox.proto
...
...
proto/gen/store/instance_setting.pb.go
View file @
d14e66da
// Code generated by protoc-gen-go. DO NOT EDIT.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// versions:
// protoc-gen-go v1.36.1
0
// protoc-gen-go v1.36.1
1
// protoc (unknown)
// protoc (unknown)
// source: store/instance_setting.proto
// source: store/instance_setting.proto
...
...
proto/gen/store/memo.pb.go
View file @
d14e66da
// Code generated by protoc-gen-go. DO NOT EDIT.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// versions:
// protoc-gen-go v1.36.1
0
// protoc-gen-go v1.36.1
1
// protoc (unknown)
// protoc (unknown)
// source: store/memo.proto
// source: store/memo.proto
...
...
proto/gen/store/user_setting.pb.go
View file @
d14e66da
// Code generated by protoc-gen-go. DO NOT EDIT.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// versions:
// protoc-gen-go v1.36.1
0
// protoc-gen-go v1.36.1
1
// protoc (unknown)
// protoc (unknown)
// source: store/user_setting.proto
// source: store/user_setting.proto
...
...
server/router/api/v1/acl_config_test.go
View file @
d14e66da
...
@@ -84,13 +84,3 @@ func TestUnknownMethodsRequireAuth(t *testing.T) {
...
@@ -84,13 +84,3 @@ func TestUnknownMethodsRequireAuth(t *testing.T) {
})
})
}
}
}
}
// TestPublicMethodsMapConsistency verifies that PublicMethods map matches test expectations.
func
TestPublicMethodsMapConsistency
(
t
*
testing
.
T
)
{
// Ensure the PublicMethods map has the expected number of entries
expectedCount
:=
13
actualCount
:=
len
(
PublicMethods
)
assert
.
Equal
(
t
,
expectedCount
,
actualCount
,
"PublicMethods map has %d entries, expected %d. Update this test if public methods changed intentionally."
,
actualCount
,
expectedCount
)
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment