Bullet Format File Error Message by LePips · Pull Request #697 · apple/swift-openapi-generator (original) (raw)

Motivation

Generated my first package and initially had my config and schema files in the wrong location which generated the following error message:

error: Issues with required files: No config file found in the target named 'BlueskyKit'. Add a file called 'openapi-generator-config.yaml' or 'openapi-generator-config.yml' to the target's source directory. See documentation for details., andNo OpenAPI document found in the target named 'BlueskyKit'. 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..

The issue is the separation between multiple error messages, resulting in etails., andNo and that was confusing.

Modifications

For these file error messages, formats them to spit out into a bulleted - list.

Note: This does not fix the (pretty much) unnecessary added periods to the end of these messages that wrap other messages that have periods. I will save that for a later time.

Result

error: Issues with required files:
- No config file found in the target named 'BlueskyKit'. Add a file called 'openapi-generator-config.yaml' or 'openapi-generator-config.yml' to the target's source directory. See documentation for details.
- No OpenAPI document found in the target named 'BlueskyKit'. 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..