Skip to content

documentation updates#296

Open
heckj wants to merge 10 commits into
apple:mainfrom
heckj:documentation-updates
Open

documentation updates#296
heckj wants to merge 10 commits into
apple:mainfrom
heckj:documentation-updates

Conversation

@heckj

@heckj heckj commented Apr 27, 2026

Copy link
Copy Markdown
  • Fix stale DocC disambiguation hash for PrivateKey init
  • Fix documentation errors, typos, and a bug in CertificateStore.appending
  • code example fixes within the existing articles:
  • Lots of smaller fixes across the board - some copy/pasta errors, consistency in usage, typos and grammar issues - added documentation comments where missing to get all public types covered - applied internal style guidelines for representing the types

heckj added 4 commits April 27, 2026 12:47
The P256 PrivateKey initializer hash changed from 6xkmz to 2we15.
- Fix copy-paste errors in doc comments (NameConstraints, Error.swift,
  CSRAttribute, ExtendedKeyUsage)
- Fix incorrect type names in code examples (SubjectAlternativeNames)
- Add missing `try` keyword in code example
- Make KeyUsage arguments consistent between snippet and full example
- Fix bug where CertificateStore.appending(_:) returned self instead of copy
- Fix typos: satifies, currency subnet, the the, PCKS#9
- Fix British spellings: realise, behaviour, fulfil, canonicalisation,
  organised, modelled
- Fix grammar: subject-verb agreement, missing articles, broken sentences,
  triple backticks, run-on sentences
- Fix "the subject is being issued" -> "the certificate is being issued"
  - SubjectAlternativeName (singular) corrected to SubjectAlternativeNames (plural)
  - Missing try on DistinguishedName builder call
  - Made KeyUsage arguments consistent
  - Article didn't provide any detail avout CSR, but mentioned it - so now links to CertificateSigningRequest
  - Added content that explains the derEncodedPrivateKey variable
- some copy/pasta errors, consistency in usage, typos and grammar issues
- added documentation comments where missing to get all public types covered
- applied internal style guidelines for representing the types
@heckj heckj added semver/none No version bump required. area/documentation Improvements or additions to documentation. labels Apr 27, 2026
@heckj heckj requested review from dnadoba and josephnoir April 27, 2026 21:09

@dnadoba dnadoba left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

A simple test for that would be great as well but I wouldn't say required.
Looked briefly over the rest and it looks okay but I will leave that up to the new maintainers.

Comment thread Sources/X509/Verifier/CertificateStore.swift Outdated
Co-authored-by: David Nadoba <dnadoba@gmail.com>
@dnadoba dnadoba added 🔨 semver/patch No public API change. and removed semver/none No version bump required. labels Apr 27, 2026
@heckj

heckj commented Apr 27, 2026

Copy link
Copy Markdown
Author

In the method that I found an issue in, I can just fix the bug, or I can use "consuming" either public or internal as @dnadoba suggested, but that changes the API surface and would seem to warrant a semver/patch or major change - depending on what this project would prefer.

I'm happy to go in which-ever direction is desired. I meant to only cover documentation updates and stumbled across the issue when checking for consistency issues.

@dnadoba

dnadoba commented Apr 27, 2026

Copy link
Copy Markdown
Member

For copyable types, like in this case, this isn't API breaking. I wouldn't even consider it an API change as this should really just be a calling convention/optimization difference.

@Lukasa Lukasa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @heckj!

@heckj

heckj commented Apr 28, 2026

Copy link
Copy Markdown
Author

The API breakage check is the switching up to using consuming on the API - that's expected. The last commit I added in resolved the broken disambiguation hashes that work on macOS, but didn't when built on Linux.

@josephnoir josephnoir left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I like it. Thanks! I got a nit and I stumbled over the singular of "delimiters". I'll let you be the judge though.

Comment thread Sources/X509/Docs.docc/Examining Certificates.md Outdated
Comment thread Sources/X509/Docs.docc/Examining Certificates.md
heckj and others added 2 commits April 29, 2026 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/documentation Improvements or additions to documentation. 🔨 semver/patch No public API change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants