CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 04:31:43 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"59b216183575bb3000a82cf82c4e0dbe"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=TOhuxTe9o2T1Mw1XNJKKi0Zhis%2BrxL3RZnvsMGPZrOyrzDwdVFeoIu8o6Q6umzXLMkPpSEAEa9Rz%2B6yX7PdAa7zN%2FlbSmBOuD%2BG1B22dmwxwWV6%2BdiVVu7h3sy0syg8OkrcfXpP847lSfuLi9I3I4AGDg%2B1kKJmdZwqmCZaLxgUiailqij%2FkNulBQTxQFGTVk3KTeStlHJl5BcJUST2i9VrtH%2BZnYc0c6yvtzPh%2FleKz3ATv02lYx0POGeH4DdKJZeM0cJS%2BKI%2FeTsfOU6uKIg%3D%3D--bjdlzKnyUB%2FB4Ng0--et9MmOwd69qoozKYxTeHmQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1920342261.1753590703; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 04:31:43 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 04:31:43 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: E58C:3467EF:AA78D8:E33B58:6885ABAF
Tags · apple/swift-openapi-generator · GitHub
Toggle 1.10.1's commit message
Toggle 1.8.0's commit message
Toggle 1.7.0's commit message
Toggle 1.6.0's commit message
Toggle 1.5.1's commit message
Toggle 1.5.0's commit message
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 136
Tags: apple/swift-openapi-generator
Tags
1.10.1
Command plugin should skip irrelevant targets when run without --targ… …et argument (#798) ### Motivation In #795 we adjusted the logic of the command plugin because errors were not propagating properly. As a result, we regressed behaviour when the command plugin was run without any `--target` argument. In this mode, the plugin runs on all targets. When it detects a misconfigured target it errors, as it should. However, the classification of misconfigured target included targets that were not intended for code generation at all, resulting in errors running the command plugin on packages with others targets. ### Modifications - Add command plugin generation step to integration test - If the command plugin is running without a `--target` argument and cannot find _any_ of the required files, skip that target. ### Result - Manual code generation with the command plugin fixed for packages with other targets. - Fixes #797. ### Test Plan This PR includes two commits. The first adds a step to the integration test, which runs the command plugin on the integration test package. This will fail in CI. Then the second commit will provide the fix, which should pass in CI. The commits will then be squash merged.
1.8.0
Add support for configurable comments in generated files (#773) ### Motivation Users want the ability to add custom comments to generated files. One concrete use case is adding directives like `swift-format-ignore-file` and `swiftlint:disable all` to prevent these tools from processing generated code. ### Modifications - Added `additionalFileComments` property to `Config` and `UserConfig` structs - Modified `FileTranslator` to include additional comments along with the do-not-edit comment - Added CLI support with `--additional-file-comment` option - Added config tests to confirm the option propagates and the default is empty - Added snippet tests to validate the actual rendering - Updated documentation with examples and usage instructions ### Result Users can now configure additional comments to be added to generated files using either the config file or a command line option. Fixes #738. ### Test plan - Added unit tests for `Config` - Added snippet tests for rendering - Manual tests of generator using config and CLI on real OpenAPI doc: ```console % swift run swift-openapi-generator generate openapi-documents/petstore.yaml \ --mode types \ --output-directory test-output-cli \ --additional-file-comment "hello world" \ --additional-file-comment "testing, testing, 1, 2, 3" Build of product 'swift-openapi-generator' complete! (3.27s) Swift OpenAPI Generator is running with the following configuration: - OpenAPI document path: /Users/Si/work/code/swift-openapi-workspace/packages/swift-openapi-generator/openapi-documents/petstore.yaml - Configuration path: <none> - Generator modes: types - Access modifier: internal - Naming strategy: defensive - Name overrides: <none> - Feature flags: <none> - Output file names: Types.swift - Output directory: /Users/Si/work/code/swift-openapi-workspace/packages/swift-openapi-generator/test-output-cli - Diagnostics output path: <none - logs to stderr> - Current directory: /Users/Si/work/code/swift-openapi-workspace/packages/swift-openapi-generator - Plugin source: <none> - Is dry run: false - Additional imports: <none> - Additional file comments: hello world, testing, testing, 1, 2, 3 Writing data to file Types.swift... % head -5 test-output-cli/Types.swift // Generated by swift-openapi-generator, do not modify. // hello world // testing, testing, 1, 2, 3 @_spi(Generated) import OpenAPIRuntime ```
1.7.0
[Cleanup] Make Config's namingStrategy and accessModifier params cons… …istent (#713) ### Motivation A missed fixup from #708: #708 (comment) ### Modifications Removed the default from Config.init and forced all callers to make a choice on the naming strategy, just like for accessModifier. ### Result Consistent handling of these two parameters. ### Test Plan Tests passed locally.
1.6.0
Idiomatic naming strategy as opt-in (#679) ### Motivation Implementation of #683. ### Modifications - Implemented the SOAR-0013 idiomatic naming strategy - Added name overrides - Switched most reference tests to use the new strategy - Updated some docs (I'll update the rest after this lands and gets released, then I can update Examples and IntegrationTest) ### Result SOAR-0013 implemented. ### Test Plan Updated and added new unit tests. --------- Co-authored-by: Si Beaumont <simonjbeaumont@gmail.com> Co-authored-by: Si Beaumont <beaumont@apple.com>
1.5.1
Access properties with explicit self in `encode(to encoder:)` (#699) ### Motivation In #696 we avoided clashing with a property called `container` in certain schemas by making use of explicit self in `init(from decoder:)`. We didn't have access to the OpenAPI document and hadn't caught the case where this was used in a schema that supported additional properties, where we also need to avoid the clash in `encode(to encoder:)`. ### Modifications - Access properties with explicit self in `encode(to encoder:)`. ### Result - Fixes #695 ### Test Plan More snippet tests and reference tests.
1.5.0
Add a note about an open issue with code generation and SourceKit-LSP (… …#642) Following the discussion on Slack, this adds a note for users of SourceKit-LSP informing them that the default code generation might not work as expected and offers a possible workaround. https://swift-open-source.slack.com/archives/C02PV8T5HQD/p1726815970093299 Only updates documentation. Let me know if you feel this is the right place for this information?
PreviousNext
You can’t perform that action at this time.