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-runtime
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 8f33cc5
Choose a base ref
...
head repository: apple/swift-openapi-runtime
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 7722cf8
Choose a head ref
  • 7 commits
  • 6 files changed
  • 3 contributors

Commits on Apr 8, 2025

  1. Configuration menu
    Copy the full SHA
    e2395f4 View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2025

  1. Enable Swift 6.1 jobs in CI (#151)

    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 authored Apr 14, 2025
    Configuration menu
    Copy the full SHA
    46f9260 View commit details
    Browse the repository at this point in the history

Commits on Apr 22, 2025

  1. move nightly disable parameter in main.yml (#152)

    Move nightly disable parameter in main.yml - the matrix workflow doesn't
    accept this parameter, it's in the wrong place. It's already in the
    correct place in the pull request yaml.
    rnro authored Apr 22, 2025
    Configuration menu
    Copy the full SHA
    cd3d9dc View commit details
    Browse the repository at this point in the history
  2. main.yml - add /swift-openapi-runtime as safe directory (#153)

    Add /swift-openapi-runtime as safe directory. This is already set in the
    pull request yaml but is missing here
    rnro authored Apr 22, 2025
    Configuration menu
    Copy the full SHA
    e5b0de7 View commit details
    Browse the repository at this point in the history

Commits on May 13, 2025

  1. Fix typo in MultiError (#154)

    ### Motivation
    
    Don't have typos in error messages.
    
    ### Modifications
    
    Fixed the typo.
    
    ### Result
    
    Typo no more.
    
    ### Test Plan
    
    N/A
    czechboy0 authored May 13, 2025
    Configuration menu
    Copy the full SHA
    7cf0cf2 View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2025

  1. Configuration menu
    Copy the full SHA
    e535c55 View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2025

  1. Fix encoding of OpenAPI{Object,Value}Container to allow multiple enco…

    …dings in anyOf/allOf (#156)
    
    ### Motivation
    
    Fixes apple/swift-openapi-generator#808.
    
    More background: We used to use `singleValueContainer()`, provided by
    Codable, to encode not just primitive values, but also composite values
    like objects and arrays. This works in _most_ cases, but not when you
    have an `anyOf` (or an `allOf`), which contains more than 1 of these
    types (`OpenAPIValueContainer` or `OpenAPIObjectContainer`). When it
    hits that case, it crashes at runtime, because you can't encode multiple
    composite types into a single encoder using `singleValueContainer()`.
    
    However, you can do that when using the proper `container(keyedBy:)` and
    `unkeyedContainer()` APIs, as that way you're not overwriting the value
    that's already there, but amending it.
    
    ### Modifications
    
    Improve the encoding and decoding logic of `OpenAPIValueContainer` and
    `OpenAPIObjectContainer` to use the more appropriate Codable APIs when
    coding composite types, like objects and arrays.
    
    ### Result
    
    Now we can have an anyOf/allOf with multiple of these types, and they
    encode/decode correctly. I also verified that the original example
    reported by the user works with this patch.
    
    ### Test Plan
    
    Added more unit tests and ensured all still pass, also verified that
    Swift OpenAPI Generator's tests pass when pointed at this patched
    version of Runtime.
    czechboy0 authored Aug 25, 2025
    Configuration menu
    Copy the full SHA
    7722cf8 View commit details
    Browse the repository at this point in the history
Loading