-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure that bundle identifiers are valid URL host components #1069
Merged
d-ronnqvist
merged 21 commits into
swiftlang:main
from
d-ronnqvist:validate-bundle-identifier
Nov 21, 2024
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
28b9522
Add bundle identifier type that ensures a valid URL host component
d-ronnqvist 0e62ffc
Use new Identifier type in `DocumentationBundle/Info`
d-ronnqvist b46b5d3
Update code to not use deprecated `Info/identifier` property
d-ronnqvist bfa673b
Use new Identifier type in `DocumentationBundle`
d-ronnqvist 98c6a58
Update code to not use deprecated `identifier` property
d-ronnqvist 399ed9a
Use new Identifier type in `[Unresolved|Resolved]TopicReference`
d-ronnqvist a7310b7
Update code to not use deprecated topic reference `bundleIdentifier` …
d-ronnqvist 221891a
Deprecate `BundleIdentifier` in favor of `DocumentationBundle/Identif…
d-ronnqvist 890e323
Use new Identifier type in `BuildMetadata`
d-ronnqvist 3c56a2d
Use new Identifier type in `AssetReference`
d-ronnqvist 13b11fb
Use new Identifier type in `ResourceReference`
d-ronnqvist 414ef9c
Use new Identifier type in `ConvertServiceFallbackResolver`
d-ronnqvist 61cc5e2
Use new Identifier type in `SerializableLinkResolutionInformation`
d-ronnqvist 5369b1c
Use new Identifier type in `ConvertAction/Indexer`
d-ronnqvist 4805a05
Prefer `bundleID` over `id` for types that scoped inside bundle
d-ronnqvist 0f2f8ef
Merge branch 'main' into validate-bundle-identifier
d-ronnqvist c2442bc
Merge branch 'main' into validate-bundle-identifier
d-ronnqvist 71b27b6
Merge branch 'main' into validate-bundle-identifier
d-ronnqvist 3d063ef
Merge branch 'main' into validate-bundle-identifier
d-ronnqvist f97e6d3
Use `bundleID` instead of `id` for property names outside the bundle
d-ronnqvist 9478d47
Use "bundle id" in local variable in fallback resolver
d-ronnqvist File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: rename this to `bundleIdentifier.
Naming this
id
can be confusing when invoking the property likeoutOfProcessReferenceResolver.id
since it might convey that this is calling the identifier of the reference resolver process.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't name it
bundleIdentifier
because there's already a property with that name but I can name itbundleID
.Like I said in this comment I'm planning on deprecating the term "bundle" because it's causing confusion and I was trying to avoid needing to introduce and deprecate a public API in the same release but I don't think there's would be too many places like this, so perhaps that's not too bad.