|
1 | | -# example v1.0.0 78160f3365e4f91df80f171a445efde0a288026e |
| 1 | +# example v1.0.0 ceb35c0c54325918ffdd24bf625bb6c8c941f75e |
2 | 2 | # -- |
3 | | -# Code generated by webrpc-gen@v0.32.3 with ../ generator; DO NOT EDIT |
| 3 | +# Code generated by webrpc-gen@v0.36.1-7-g392437b with ../ generator; DO NOT EDIT |
4 | 4 | # |
5 | 5 | # webrpc-gen -schema=./api.ridl -target=../ -out=./openapi.gen.yaml -title=Example webrpc API -apiVersion=v22.11.8 -serverUrl=https://api.example.com -serverDescription=Production -securityAnnotation=@auth -securitySchemes={ 'ApiKeyAuth': { 'type': 'apiKey', 'in': 'header', 'description': 'Project access key for authenticating requests', 'name': 'X-Access-Key' }, 'ServiceAuth': { 'type': 'apiKey', 'in': 'header', 'description': 'Project access key for authenticating requests', 'name': 'X-Access-Key' } } |
6 | 6 | openapi: 3.0.0 |
@@ -299,6 +299,12 @@ components: |
299 | 299 | status: |
300 | 300 | type: number |
301 | 301 | example: 503 |
| 302 | + Username: |
| 303 | + type: string |
| 304 | + |
| 305 | + Age: |
| 306 | + type: number |
| 307 | + |
302 | 308 | Kind: |
303 | 309 | type: string |
304 | 310 | description: Represented as uint32 on the server side |
@@ -886,50 +892,6 @@ paths: |
886 | 892 | - $ref: '#/components/schemas/ErrorWebrpcServerPanic' |
887 | 893 | - $ref: '#/components/schemas/ErrorWebrpcInternalError' |
888 | 894 | - $ref: '#/components/schemas/ErrorDatabaseDown' |
889 | | - /v1/ExampleService/StreamUserNotifications: |
890 | | - post: |
891 | | - operationId: ExampleService-StreamUserNotifications |
892 | | - tags: ["ExampleService"] |
893 | | - summary: "" |
894 | | - requestBody: |
895 | | - content: |
896 | | - application/json: |
897 | | - schema: |
898 | | - type: object |
899 | | - responses: |
900 | | - '200': |
901 | | - description: OK |
902 | | - content: |
903 | | - application/x-ndjson: |
904 | | - schema: |
905 | | - $ref: '#/components/schemas/StreamNotificationsResponse' |
906 | | - # OpenAPI 3.2.0 streaming (itemSchema) is not supported by 3.1.0 tooling: |
907 | | - # itemSchema: |
908 | | - # $ref: '#/components/schemas/ExampleService_StreamUserNotifications_Response' |
909 | | - '4XX': |
910 | | - description: Client error |
911 | | - content: |
912 | | - application/json: |
913 | | - schema: |
914 | | - oneOf: |
915 | | - - $ref: '#/components/schemas/ErrorWebrpcEndpoint' |
916 | | - - $ref: '#/components/schemas/ErrorWebrpcRequestFailed' |
917 | | - - $ref: '#/components/schemas/ErrorWebrpcBadRoute' |
918 | | - - $ref: '#/components/schemas/ErrorWebrpcBadMethod' |
919 | | - - $ref: '#/components/schemas/ErrorWebrpcBadRequest' |
920 | | - - $ref: '#/components/schemas/ErrorWebrpcClientAborted' |
921 | | - - $ref: '#/components/schemas/ErrorWebrpcStreamLost' |
922 | | - - $ref: '#/components/schemas/ErrorRateLimited' |
923 | | - '5XX': |
924 | | - description: Server error |
925 | | - content: |
926 | | - application/json: |
927 | | - schema: |
928 | | - oneOf: |
929 | | - - $ref: '#/components/schemas/ErrorWebrpcBadResponse' |
930 | | - - $ref: '#/components/schemas/ErrorWebrpcServerPanic' |
931 | | - - $ref: '#/components/schemas/ErrorWebrpcInternalError' |
932 | | - - $ref: '#/components/schemas/ErrorDatabaseDown' |
933 | 895 | /v1/ExampleService2/Ping: |
934 | 896 | post: |
935 | 897 | operationId: ExampleService2-Ping |
|
0 commit comments