Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# OpenAPI spec preprocessing ## ♻️ Current situation & Problem The OpenAI OpenAPI specification contains the following issues that require preprocessing before code generation: - **Incorrect `required` Property**: A non-existent property is incorrectly marked as `required` (see [`openai-openapi#421`](openai/openai-openapi#421)). - **Unsupported `oneOf` Syntax**: The `swift-openapi-generator` does not fully support `oneOf` with `required` properties (see [`swift-openapi-generator#739`](apple/swift-openapi-generator#739)). - **Deprecation Warnings**: `deprecated` markings in the OpenAPI spec trigger warnings in the generated Swift code (see [`swift-openapi-generator#106`](apple/swift-openapi-generator#106) and [`swift-openapi-generator#715`](apple/swift-openapi-generator#715)). Without preprocessing, these issues result in unnecessary warnings during the Swift code generation and in the resulting Swift client code. ## ⚙️ Release Notes - Add OpenAPI spec preprocessing script - Preprocess OpenAPI OpenAI spec ## 📚 Documentation README for proper motivation for the need of preprocessing and usage instructions. ## ✅ Testing Local testing ## 📝 Code of Conduct & Contributing Guidelines By submitting creating this pull request, you agree to follow our [Code of Conduct](https://github.com/StanfordSpezi/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/StanfordSpezi/.github/blob/main/CONTRIBUTING.md): - [x] I agree to follow the [Code of Conduct](https://github.com/StanfordSpezi/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/StanfordSpezi/.github/blob/main/CONTRIBUTING.md).
- Loading branch information