Skip to content

Commit

Permalink
🔧 setup config file
Browse files Browse the repository at this point in the history
  • Loading branch information
ras0q committed Aug 26, 2022
1 parent da6b7cd commit e1ac05b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .openapi-generator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Ref: https://openapi-generator.tech/docs/generators/swift5/

projectName: Traq
swiftUseApiNamespace: true
removeMigrationProjectNameClass: true
4 changes: 1 addition & 3 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ wget -nv -P /tmp https://raw.githubusercontent.com/traPtitech/traQ/master/docs/v
openapi-generator-cli generate \
-g swift5 \
-i /tmp/v3-api.yaml \
--additional-properties 'projectName=Traq' \
--additional-properties 'swiftUseApiNamespace=true' \
--additional-properties 'removeMigrationProjectNameClass=true'
-c ./.openapi-generator.yml

# NOTE: enumの`-createdAt`と`createdAt`が共に`createdat`に変換されて衝突するため置換する
MESSAGEAPI_FILE=./Traq/Classes/OpenAPIs/APIs/MessageAPI.swift
Expand Down

0 comments on commit e1ac05b

Please sign in to comment.