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
Add support for .yml extension (openapi.yml and openapi-generator-config.yml) (#77)
### Motivation
Some openapi file use `.yml` as the yaml file extension, we should
support this instead of forcing user to rename it.
> https://github.com/discourse/discourse_api_docs/blob/main/openapi.yml
### Modifications
Add yml file extension support
### Result
- Users can provide `openapi.yml` instead of `openapi.yaml`
- Users can provide `openapi-generator-config.yml` instead of `openapi-generator-config.yml`
"Incompatible target called '\(targetName)'. Only Swift source targets can be used with the Swift OpenAPI generator plugin."
29
31
case.noConfigFound(let targetName):
30
32
return
31
-
"No config found in the target named '\(targetName)'. Add a file called 'openapi-generator-config.yaml' to the target's source directory. See documentation for details."
33
+
"No config file found in the target named '\(targetName)'. Add a file called 'openapi-generator-config.yaml' or 'openapi-generator-config.yml' to the target's source directory. See documentation for details."
32
34
case.noDocumentFound(let targetName):
33
35
return
34
-
"No OpenAPI document found in the target named '\(targetName)'. Add a file called 'openapi.yaml' or 'openapi.json' (can also be a symlink) to the target's source directory. See documentation for details."
36
+
"No OpenAPI document found in the target named '\(targetName)'. Add a file called 'openapi.yaml', 'openapi.yml' or 'openapi.json' (can also be a symlink) to the target's source directory. See documentation for details."
37
+
case.multiConfigFound(let targetName,let files):
38
+
return
39
+
"Multiple config files found in the target named '\(targetName)', but exactly one is required. Found \(files.map(\.description).joined(separator:""))."
"Multiple OpenAPI documents found in the target named '\(targetName)', but exactly one is required. Found \(files.map(\.description).joined(separator:""))."
0 commit comments