Skip to content

Comments

Rename config trait from SwiftConfiguration to Configuration#107

Merged
FranzBusch merged 2 commits intomainfrom
hd-rename-config-trait
Feb 19, 2026
Merged

Rename config trait from SwiftConfiguration to Configuration#107
FranzBusch merged 2 commits intomainfrom
hd-rename-config-trait

Conversation

@czechboy0
Copy link
Contributor

Motivation

We generally don't use the "Swift" prefix in module/product/trait names, so the trait name should be "Configuration", not "SwiftConfiguration".

That's what other important ecosystem packages have done as well, so let's follow their lead.

Modifications

Renamed the trait from "SwiftConfiguration" to "Configuration".

Result

Better trait name, aligned with the ecosystem.

Test Plan

PR CI.

Comment on lines +28 to +29
.trait(name: "Configuration"),
.default(enabledTraits: ["Configuration"]),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This trait should really not be here since it is just for vending the copied server.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You think the trait should be removed? Could that be done separately from fixing the name?

aryan-25 added a commit to swift-server/swift-http-server that referenced this pull request Feb 19, 2026
Motivation:

PR apple/swift-http-api-proposal#107 in
`swift-http-api-proposal` renames the `"SwiftConfiguration"` trait name
to `"Configuration"`, as the convention is to not use the "Swift" prefix
in module/product/trait names. We should do the same in this repository.

Modifications:

Renamed the `"SwiftConfiguration"` trait to `"Configuration"`.

Result:

Trait name aligns with the standard convention.
@FranzBusch FranzBusch added the 🆕 semver/minor Adds new public API. label Feb 19, 2026
@FranzBusch FranzBusch enabled auto-merge (squash) February 19, 2026 10:26
@FranzBusch FranzBusch merged commit f11d9bc into main Feb 19, 2026
18 of 22 checks passed
@FranzBusch FranzBusch deleted the hd-rename-config-trait branch February 19, 2026 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🆕 semver/minor Adds new public API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants