Skip to content

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 force-pushed the sb/shared-types-example branch from 51cc55a to b701955 Compare July 15, 2024 09:04
@simonjbeaumont simonjbeaumont enabled auto-merge (squash) July 15, 2024 10:42
@simonjbeaumont simonjbeaumont merged commit 285ebba into apple:main Jul 15, 2024
@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