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

Add example package using shared types in client and server #592

Merged
merged 3 commits into from
Jul 15, 2024

Conversation

simonjbeaumont
Copy link
Collaborator

Motivation

We get asked from time to time how to structure a package to share types from an OpenAPI document between multiple targets, e.g. a client and a server. This allows adopters to write extensions or other functionality that uses the common types once, and use them from both downstream modules.

Modifications

Add an example package that combines the existing Hello World client and server but factors the types generation into a separate module.

Result

Another example package.

Test Plan

  • Tested locally, which produces the same result as in the example README.
  • CI.

@simonjbeaumont simonjbeaumont enabled auto-merge (squash) July 15, 2024 10:42
@simonjbeaumont simonjbeaumont merged commit 285ebba into apple:main Jul 15, 2024
9 checks passed
@czechboy0 czechboy0 added the semver/none No version bump required. label Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/none No version bump required.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants