You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/protoc-gen-openapi/examples/google/example/library/v1/openapi.yaml
+27-27Lines changed: 27 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ paths:
62
62
content:
63
63
application/json:
64
64
schema:
65
-
$ref: '#/components/schemas/Status'
65
+
$ref: '#/components/schemas/GoogleRpcStatus'
66
66
x-fern-sdk-group-name: LibraryService
67
67
x-fern-sdk-method-name: ListShelves
68
68
x-fern-request-name: ListShelvesRequest
@@ -89,7 +89,7 @@ paths:
89
89
content:
90
90
application/json:
91
91
schema:
92
-
$ref: '#/components/schemas/Status'
92
+
$ref: '#/components/schemas/GoogleRpcStatus'
93
93
x-fern-sdk-group-name: LibraryService
94
94
x-fern-sdk-method-name: CreateShelf
95
95
x-fern-request-name: CreateShelfRequest
@@ -118,7 +118,7 @@ paths:
118
118
content:
119
119
application/json:
120
120
schema:
121
-
$ref: '#/components/schemas/Status'
121
+
$ref: '#/components/schemas/GoogleRpcStatus'
122
122
x-fern-sdk-group-name: LibraryService
123
123
x-fern-sdk-method-name: GetShelf
124
124
x-fern-request-name: GetShelfRequest
@@ -143,7 +143,7 @@ paths:
143
143
content:
144
144
application/json:
145
145
schema:
146
-
$ref: '#/components/schemas/Status'
146
+
$ref: '#/components/schemas/GoogleRpcStatus'
147
147
x-fern-sdk-group-name: LibraryService
148
148
x-fern-sdk-method-name: DeleteShelf
149
149
x-fern-request-name: DeleteShelfRequest
@@ -198,7 +198,7 @@ paths:
198
198
content:
199
199
application/json:
200
200
schema:
201
-
$ref: '#/components/schemas/Status'
201
+
$ref: '#/components/schemas/GoogleRpcStatus'
202
202
x-fern-sdk-group-name: LibraryService
203
203
x-fern-sdk-method-name: ListBooks
204
204
x-fern-request-name: ListBooksRequest
@@ -232,7 +232,7 @@ paths:
232
232
content:
233
233
application/json:
234
234
schema:
235
-
$ref: '#/components/schemas/Status'
235
+
$ref: '#/components/schemas/GoogleRpcStatus'
236
236
x-fern-sdk-group-name: LibraryService
237
237
x-fern-sdk-method-name: CreateBook
238
238
x-fern-request-name: CreateBookRequest
@@ -267,7 +267,7 @@ paths:
267
267
content:
268
268
application/json:
269
269
schema:
270
-
$ref: '#/components/schemas/Status'
270
+
$ref: '#/components/schemas/GoogleRpcStatus'
271
271
x-fern-sdk-group-name: LibraryService
272
272
x-fern-sdk-method-name: GetBook
273
273
x-fern-request-name: GetBookRequest
@@ -317,7 +317,7 @@ paths:
317
317
content:
318
318
application/json:
319
319
schema:
320
-
$ref: '#/components/schemas/Status'
320
+
$ref: '#/components/schemas/GoogleRpcStatus'
321
321
x-fern-sdk-group-name: LibraryService
322
322
x-fern-sdk-method-name: UpdateBook
323
323
x-fern-request-name: UpdateBookRequest
@@ -348,7 +348,7 @@ paths:
348
348
content:
349
349
application/json:
350
350
schema:
351
-
$ref: '#/components/schemas/Status'
351
+
$ref: '#/components/schemas/GoogleRpcStatus'
352
352
x-fern-sdk-group-name: LibraryService
353
353
x-fern-sdk-method-name: DeleteBook
354
354
x-fern-request-name: DeleteBookRequest
@@ -391,7 +391,7 @@ paths:
391
391
content:
392
392
application/json:
393
393
schema:
394
-
$ref: '#/components/schemas/Status'
394
+
$ref: '#/components/schemas/GoogleRpcStatus'
395
395
x-fern-sdk-group-name: LibraryService
396
396
x-fern-sdk-method-name: MoveBook
397
397
x-fern-request-name: MoveBookRequest
@@ -433,7 +433,7 @@ paths:
433
433
content:
434
434
application/json:
435
435
schema:
436
-
$ref: '#/components/schemas/Status'
436
+
$ref: '#/components/schemas/GoogleRpcStatus'
437
437
x-fern-sdk-group-name: LibraryService
438
438
x-fern-sdk-method-name: MergeShelves
439
439
x-fern-request-name: MergeShelvesRequest
@@ -515,6 +515,22 @@ components:
515
515
x-fern-encoding:
516
516
proto:
517
517
type: google.protobuf.Any
518
+
GoogleRpcStatus:
519
+
type: object
520
+
properties:
521
+
code:
522
+
type: integer
523
+
description: The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
524
+
format: int32
525
+
message:
526
+
type: string
527
+
description: A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
528
+
details:
529
+
type: array
530
+
items:
531
+
$ref: '#/components/schemas/GoogleProtobufAny'
532
+
description: A list of messages that carry the error details. There is a common set of message types for APIs to use.
533
+
description: 'The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).'
518
534
ListBooksResponse:
519
535
type: object
520
536
properties:
@@ -643,21 +659,5 @@ components:
643
659
description: A Shelf contains a collection of books with a theme.
644
660
x-fern-type-name: Shelf
645
661
source: google/example/library/v1/library.proto
646
-
Status:
647
-
type: object
648
-
properties:
649
-
code:
650
-
type: integer
651
-
description: The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
652
-
format: int32
653
-
message:
654
-
type: string
655
-
description: A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
656
-
details:
657
-
type: array
658
-
items:
659
-
$ref: '#/components/schemas/GoogleProtobufAny'
660
-
description: A list of messages that carry the error details. There is a common set of message types for APIs to use.
661
-
description: 'The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).'
Copy file name to clipboardExpand all lines: cmd/protoc-gen-openapi/examples/google/example/library/v1/openapi_default_response.yaml
+27-27Lines changed: 27 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ paths:
62
62
content:
63
63
application/json:
64
64
schema:
65
-
$ref: '#/components/schemas/Status'
65
+
$ref: '#/components/schemas/GoogleRpcStatus'
66
66
x-fern-sdk-group-name: LibraryService
67
67
x-fern-sdk-method-name: ListShelves
68
68
x-fern-request-name: ListShelvesRequest
@@ -89,7 +89,7 @@ paths:
89
89
content:
90
90
application/json:
91
91
schema:
92
-
$ref: '#/components/schemas/Status'
92
+
$ref: '#/components/schemas/GoogleRpcStatus'
93
93
x-fern-sdk-group-name: LibraryService
94
94
x-fern-sdk-method-name: CreateShelf
95
95
x-fern-request-name: CreateShelfRequest
@@ -118,7 +118,7 @@ paths:
118
118
content:
119
119
application/json:
120
120
schema:
121
-
$ref: '#/components/schemas/Status'
121
+
$ref: '#/components/schemas/GoogleRpcStatus'
122
122
x-fern-sdk-group-name: LibraryService
123
123
x-fern-sdk-method-name: GetShelf
124
124
x-fern-request-name: GetShelfRequest
@@ -143,7 +143,7 @@ paths:
143
143
content:
144
144
application/json:
145
145
schema:
146
-
$ref: '#/components/schemas/Status'
146
+
$ref: '#/components/schemas/GoogleRpcStatus'
147
147
x-fern-sdk-group-name: LibraryService
148
148
x-fern-sdk-method-name: DeleteShelf
149
149
x-fern-request-name: DeleteShelfRequest
@@ -198,7 +198,7 @@ paths:
198
198
content:
199
199
application/json:
200
200
schema:
201
-
$ref: '#/components/schemas/Status'
201
+
$ref: '#/components/schemas/GoogleRpcStatus'
202
202
x-fern-sdk-group-name: LibraryService
203
203
x-fern-sdk-method-name: ListBooks
204
204
x-fern-request-name: ListBooksRequest
@@ -232,7 +232,7 @@ paths:
232
232
content:
233
233
application/json:
234
234
schema:
235
-
$ref: '#/components/schemas/Status'
235
+
$ref: '#/components/schemas/GoogleRpcStatus'
236
236
x-fern-sdk-group-name: LibraryService
237
237
x-fern-sdk-method-name: CreateBook
238
238
x-fern-request-name: CreateBookRequest
@@ -267,7 +267,7 @@ paths:
267
267
content:
268
268
application/json:
269
269
schema:
270
-
$ref: '#/components/schemas/Status'
270
+
$ref: '#/components/schemas/GoogleRpcStatus'
271
271
x-fern-sdk-group-name: LibraryService
272
272
x-fern-sdk-method-name: GetBook
273
273
x-fern-request-name: GetBookRequest
@@ -317,7 +317,7 @@ paths:
317
317
content:
318
318
application/json:
319
319
schema:
320
-
$ref: '#/components/schemas/Status'
320
+
$ref: '#/components/schemas/GoogleRpcStatus'
321
321
x-fern-sdk-group-name: LibraryService
322
322
x-fern-sdk-method-name: UpdateBook
323
323
x-fern-request-name: UpdateBookRequest
@@ -348,7 +348,7 @@ paths:
348
348
content:
349
349
application/json:
350
350
schema:
351
-
$ref: '#/components/schemas/Status'
351
+
$ref: '#/components/schemas/GoogleRpcStatus'
352
352
x-fern-sdk-group-name: LibraryService
353
353
x-fern-sdk-method-name: DeleteBook
354
354
x-fern-request-name: DeleteBookRequest
@@ -391,7 +391,7 @@ paths:
391
391
content:
392
392
application/json:
393
393
schema:
394
-
$ref: '#/components/schemas/Status'
394
+
$ref: '#/components/schemas/GoogleRpcStatus'
395
395
x-fern-sdk-group-name: LibraryService
396
396
x-fern-sdk-method-name: MoveBook
397
397
x-fern-request-name: MoveBookRequest
@@ -433,7 +433,7 @@ paths:
433
433
content:
434
434
application/json:
435
435
schema:
436
-
$ref: '#/components/schemas/Status'
436
+
$ref: '#/components/schemas/GoogleRpcStatus'
437
437
x-fern-sdk-group-name: LibraryService
438
438
x-fern-sdk-method-name: MergeShelves
439
439
x-fern-request-name: MergeShelvesRequest
@@ -515,6 +515,22 @@ components:
515
515
x-fern-encoding:
516
516
proto:
517
517
type: google.protobuf.Any
518
+
GoogleRpcStatus:
519
+
type: object
520
+
properties:
521
+
code:
522
+
type: integer
523
+
description: The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
524
+
format: int32
525
+
message:
526
+
type: string
527
+
description: A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
528
+
details:
529
+
type: array
530
+
items:
531
+
$ref: '#/components/schemas/GoogleProtobufAny'
532
+
description: A list of messages that carry the error details. There is a common set of message types for APIs to use.
533
+
description: 'The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).'
518
534
ListBooksResponse:
519
535
type: object
520
536
properties:
@@ -643,21 +659,5 @@ components:
643
659
description: A Shelf contains a collection of books with a theme.
644
660
x-fern-type-name: Shelf
645
661
source: google/example/library/v1/library.proto
646
-
Status:
647
-
type: object
648
-
properties:
649
-
code:
650
-
type: integer
651
-
description: The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
652
-
format: int32
653
-
message:
654
-
type: string
655
-
description: A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
656
-
details:
657
-
type: array
658
-
items:
659
-
$ref: '#/components/schemas/GoogleProtobufAny'
660
-
description: A list of messages that carry the error details. There is a common set of message types for APIs to use.
661
-
description: 'The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).'
0 commit comments