Skip to content
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

Better control over generated model access levels #465

Open
andrewdmontgomery opened this issue Oct 4, 2024 · 0 comments
Open

Better control over generated model access levels #465

andrewdmontgomery opened this issue Oct 4, 2024 · 0 comments
Labels

Comments

@andrewdmontgomery
Copy link
Contributor

andrewdmontgomery commented Oct 4, 2024

Let's move the OpenAPI code into a dedicated Swift Package. Then we can add this local package as a local dependency of the SDK, and then expose types via public typealias and package typealias.

We can add supportingFiles to the --global-property option:

generate -i openapi.yaml --global-property models supportingFiles

This generates a few useful files:

  • Package.swift
  • The podspec
@andrewdmontgomery andrewdmontgomery changed the title Move OpenAPI code into a dedicated Swift Package Better control over generated model access levels Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant