Comparing 1.7.2...1.8.0 · apple/swift-openapi-generator (original) (raw)

Commits on Apr 8, 2025

  1. Configuration menu
    Browse the repository at this point in the history

Commits on Apr 9, 2025

  1. examples: Update streaming ChatGPT example for Swift 6.1 (#759)

Motivation

The streaming ChatGPT example we have uses Swift 6.0 and the Swift VS
Code extension from the SSWG. Since then, Swift 6.1 has been released,
which contains fixes for indexing and editor functionality for code
generated by Swift package plugins. The VS Code plugin has also been
moved to the Swift project.

Modifications

Result

Example represents what was most recently presented.

Test Plan

CI will ensure the package has not regressed.
@simonjbeaumont
Configuration menu
Browse the repository at this point in the history

Commits on Apr 14, 2025

  1. Enable Swift 6.1 jobs in CI (#761)
    Motivation:
    Swift 6.1 has been released, we should add it to our CI coverage.
    Modifications:
    Add additional Swift 6.1 jobs where appropriate in main.yml,
    pull_request.yml
    Result:
    Improved test coverage.
    @rnro
    rnro authored
    Apr 14, 2025
    Configuration menu
    Browse the repository at this point in the history

Commits on Apr 16, 2025

  1. Configuration menu
    Browse the repository at this point in the history

Commits on May 7, 2025

  1. Drop Swift 5.9 (#765)
    Motivation:
    Swift 5.9 is no longer supported, we should bump the tools version and
    remove it from our CI.
    Modifications:

Commits on May 21, 2025

  1. Configuration menu
    Browse the repository at this point in the history

Commits on May 23, 2025

  1. Add support for configurable comments in generated files (#773)

Motivation

Users want the ability to add custom comments to generated files. One
concrete use case is adding directives like swift-format-ignore-file
and swiftlint:disable all to prevent these tools from processing
generated code.

Modifications

Result

Users can now configure additional comments to be added to generated
files using either the config file or a command line option.
Fixes #738.

Test plan

% swift run swift-openapi-generator generate openapi-documents/petstore.yaml \  
  --mode types \  
  --output-directory test-output-cli \  
  --additional-file-comment "hello world" \  
  --additional-file-comment "testing, testing, 1, 2, 3"  
Build of product 'swift-openapi-generator' complete! (3.27s)  
Swift OpenAPI Generator is running with the following configuration:  
- OpenAPI document path: /Users/Si/work/code/swift-openapi-workspace/packages/swift-openapi-generator/openapi-documents/petstore.yaml  
- Configuration path: <none>  
- Generator modes: types  
- Access modifier: internal  
- Naming strategy: defensive  
- Name overrides: <none>  
- Feature flags: <none>  
- Output file names: Types.swift  
- Output directory: /Users/Si/work/code/swift-openapi-workspace/packages/swift-openapi-generator/test-output-cli  
- Diagnostics output path: <none - logs to stderr>  
- Current directory: /Users/Si/work/code/swift-openapi-workspace/packages/swift-openapi-generator  
- Plugin source: <none>  
- Is dry run: false  
- Additional imports: <none>  
- Additional file comments: hello world, testing, testing, 1, 2, 3  
Writing data to file Types.swift...  
% head -5 test-output-cli/Types.swift  
// Generated by swift-openapi-generator, do not modify.  
// hello world  
// testing, testing, 1, 2, 3  
@_spi(Generated) import OpenAPIRuntime  

@simonjbeaumont
Configuration menu
Browse the repository at this point in the history