Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: apple/swift-openapi-generator
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.8.0
Choose a base ref
...
head repository: apple/swift-openapi-generator
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.9.0
Choose a head ref
  • 3 commits
  • 22 files changed
  • 3 contributors

Commits on Jun 17, 2025

  1. Allow substituting types (#764)

    ### Motivation
    
    Picking up after some time from this issue
    #375
    
    There are some usecases described here that i think could be addressed
    by this.
    
    I suspect there are some "bigger picture" decisions (maybe proposals)
    needing to happen so i wanted to get the ball rolling :)
    
    
    ### Modifications
    
    I made a small change allowing to "swap in" any type instead of
    generating one, by using a vendor-extension
    (`x-swift-open-api-substitute-type`)
    
    ### Result
    
    The following spec 
    
    ```yaml
    openapi: 3.1.0
    info:
      title: api
      version: 1.0.0
    components:
      schemas:
        MyCustomString:
          type: string
          x-swift-open-api-substitute-type: MyLibrary.MyCustomString
    ```
    would generate code like this (abbreviated)
    ```swift
    public enum Components {
        public enum Schemas {
            /// - Remark: Generated from `#/components/schemas/MyCustomString`.
            public typealias MyCustomString = MyLibrary.MyCustomString
        }
    }
    ```
    
    
    ### Test Plan
    
    I did write a test but suspect theres, other parts affected that i
    missed
    
    ---------
    
    Co-authored-by: simonbility <simon.anreiter@wegfinder.at>
    Co-authored-by: Honza Dvorsky <honza@apple.com>
    3 people authored Jun 17, 2025
    Configuration menu
    Copy the full SHA
    eb66fa9 View commit details
    Browse the repository at this point in the history
  2. SOAR-0014: TypeOverrides (#774)

    ### Motivation
    
    See Proposal Text
    
    ### Modifications
    
    Added TypeOverrides Proposal
    
    ### Result
    
    Implementation is in separate PR #764
     
    ### Test Plan
    
    N/A
    
    ---------
    
    Co-authored-by: simonbility <simon.anreiter@wegfinder.at>
    Co-authored-by: Honza Dvorsky <honza@apple.com>
    3 people authored Jun 17, 2025
    Configuration menu
    Copy the full SHA
    99c3f32 View commit details
    Browse the repository at this point in the history
  3. Add type overrides key to the docs (#788)

    ### Motivation
    
    In #774 and #764 we missed adding the docs for the new key in the config
    file.
    
    ### Modifications
    
    Added the missing docs.
    
    ### Result
    
    Type overrides property documented.
    
    ### Test Plan
    
    N/A
    czechboy0 authored Jun 17, 2025
    Configuration menu
    Copy the full SHA
    ea291f0 View commit details
    Browse the repository at this point in the history
Loading