Closed ojun9 closed 4 months ago
@swift-server-bot test this please
@swift-server-bot test this please
For the 5.9 and 5.9.0 pipelines, we're running into the deprecation warning being escalated to an error. We already disabled warnings-as-errors on most other pipelines, please also comment out this line in the two files for 5.9 and 5.9.0, then the CI should pass.
@swift-server-bot test this please
Motivation
As reported in https://github.com/apple/swift-openapi-generator/issues/586, using Xcode 16 Beta 3, the generated Type.swift file now shows multiple warnings due to the
@frozen
attribute being applied to non-public enums.Modifications
In order to resolve the above issue, I have modified the code to annotate the
@frozen
keyword only onenum
with thepublic
orpackage
modifiers.Result
No warnings are issued when the
@frozen
keyword is annotated on enums with thepublic
orpackage
modifiers.