apple / swift-openapi-generator

Generate Swift client and server code from an OpenAPI document.
https://swiftpackageindex.com/apple/swift-openapi-generator/documentation
Apache License 2.0
1.45k stars 121 forks source link

Make error message for missing "openapi" key clearer. #678

Closed deirdresmtoo closed 4 days ago

deirdresmtoo commented 5 days ago

Accidentally hit this error message due to a copy/paste oops and found the resulting error message confusing.

Motivation

Initially when I saw the message, I thought of key as in public/private keys, not key as in key/value pair.

Modifications

Slight change in wording to make it clearer that a key with the name openapi is what's missing.

Result

Error message will be updated.

Test Plan

Updated test results also and verified tests pass.