# \[Proposal\] SOAR-0016: Attached macros on generated declarations

**URL:** <https://forums.swift.org/t/proposal-soar-0016-attached-macros-on-generated-declarations/90100>\
**Category:** Development\
**Tags:** openapi\
**Created:** [October 15, 2026, 12:30pm UTC](https://forums.swift.org/t/proposal-soar-0016-attached-macros-on-generated-declarations/90100 "2026-10-15T12:30:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Honza\_Dvorsky](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/honza_dvorsky/32/29867_2.png) [@Honza\_Dvorsky](https://forums.swift.org/u/Honza_Dvorsky)\
**Post date:** [October 15, 2026, 12:30pm UTC](https://forums.swift.org/t/proposal-soar-0016-attached-macros-on-generated-declarations/90100/1 "2026-10-15T12:30:05Z")

</div>

Hi Swift community!

The proposal [SOAR-0016: Attached macros on generated declarations](https://github.com/mackoj/swift-openapi-generator/blob/soar-0016-proposal/Sources/swift-openapi-generator/Documentation.docc/Proposals/SOAR-0016.md) for Swift OpenAPI Generator is now up and **In Review**.

The review period will run until **Sunday, November 1** - please feel free to post your feedback either as a reply to this thread, or on the [pull request](https://github.com/apple/swift-openapi-generator/pull/964).

Thanks!

cc @mackoj @beaumont

---

<div class="post-metadata">

**Author:** ![mackoj](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/mackoj/32/42395_2.png) [@mackoj](https://forums.swift.org/u/mackoj)\
**Post date:** [November 2, 2026, 10:43am UTC](https://forums.swift.org/t/proposal-soar-0016-attached-macros-on-generated-declarations/90100/2 "2026-11-02T10:43:20Z")

</div>

Hello everyone FWIW I have written this SOAR so I'm very bias but I am pretty sure that adding macro to the generated code of Swift OpenAPI Generator could only be a positive additions because macro allow powerful and varied modifications to the generated code.

---

<div class="post-metadata">

**Author:** ![Honza\_Dvorsky](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/honza_dvorsky/32/29867_2.png) [@Honza\_Dvorsky](https://forums.swift.org/u/Honza_Dvorsky)\
**Post date:** [November 2, 2026, 1:17pm UTC](https://forums.swift.org/t/proposal-soar-0016-attached-macros-on-generated-declarations/90100/3 "2026-11-02T13:17:36Z")

</div>

Thanks for the feedback folks (mostly in the form of likes on the message), this proposal is now **Ready for Implementation**.
