Skip to content

Commit

Permalink
fix: thrift reference errors in generation
Browse files Browse the repository at this point in the history
  • Loading branch information
EZ4Jam1n committed Sep 16, 2024
1 parent e81b1f9 commit 5ab496d
Show file tree
Hide file tree
Showing 7 changed files with 434 additions and 302 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ jobs:
run: chmod +x ./hack/tools.sh

- name: Unit Test
if: success() && files.exists('**/*_test.go')
run: make test
4 changes: 3 additions & 1 deletion common/consts/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,17 @@ const (
InfoURL = "https://github.com/hertz-contrib/swagger-generate/"
URLDefaultPrefixHTTP = "http://"
URLDefaultPrefixHTTPS = "https://"
DefaultInfoTitle = "API generated by thrift-gen-http-swagger"
DefaultInfoTitle = "API generated by "
DefaultInfoDesc = "API description"
DefaultInfoVersion = "0.0.1"

DocumentOptionServiceType = "service"
DocumentOptionStructType = "struct"

DefaultResponseDesc = "Successful response"
DefaultExceptionDesc = "Exception response"
StatusOK = "200"
StatusBadRequest = "400"
SchemaObjectType = "object"
ComponentSchemaPrefix = "#/components/schemas/"
ComponentSchemaSuffixBody = "Body"
Expand Down
Loading

0 comments on commit 5ab496d

Please sign in to comment.