Skip to content

Commit

Permalink
Merge pull request #17 from webrpc/replace
Browse files Browse the repository at this point in the history
use double quotes to wrap comments and replace all double quotes with  single
  • Loading branch information
LukasJenicek authored Mar 8, 2024
2 parents 1947743 + 6da3ea5 commit 7698afa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v3
- name: Install webrpc-gen
run: |
curl -o ./webrpc-gen -fLJO https://github.com/webrpc/webrpc/releases/download/v0.14.3/webrpc-gen.linux-amd64
curl -o ./webrpc-gen -fLJO https://github.com/webrpc/webrpc/releases/download/v0.15.1/webrpc-gen.linux-amd64
chmod +x ./webrpc-gen
echo $PWD >> $GITHUB_PATH
Expand Down
4 changes: 2 additions & 2 deletions _examples/openapi.gen.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# example v0.0.1 2b7f54ec87d95d472145c1e137844eb76a239e1f
# --
# Code generated by webrpc-gen@v0.14.3 with ../ generator; DO NOT EDIT
# Code generated by webrpc-gen@v0.15.1 with ../ generator; DO NOT EDIT
#
# webrpc-gen -schema=./proto.ridl -target=../ -out=./openapi.gen.yaml -title=Example webrpc API -apiVersion=v22.11.8 -serverUrl=https://api.example.com -serverDescription=Production
openapi: 3.0.0
Expand Down Expand Up @@ -702,4 +702,4 @@ paths:
- $ref: '#/components/schemas/ErrorWebrpcBadResponse'
- $ref: '#/components/schemas/ErrorWebrpcServerPanic'
- $ref: '#/components/schemas/ErrorWebrpcInternalError'
- $ref: '#/components/schemas/ErrorDatabaseDown'
- $ref: '#/components/schemas/ErrorDatabaseDown'
2 changes: 1 addition & 1 deletion main.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ paths:
/rpc/{{$service.Name}}/{{$method.Name}}:
post:
{{- if gt (len $method.Comments) 0 }}
summary: '{{ join $method.Comments "\n" }}'
summary: "{{ replaceAll (join $method.Comments "\n") "\"" "'" }}"
{{- end }}
requestBody:
content:
Expand Down

0 comments on commit 7698afa

Please sign in to comment.