aws / aws-pdk

The AWS PDK provides building blocks for common patterns together with development tools to manage and build your projects.
https://aws.github.io/aws-pdk/
Apache License 2.0
384 stars 75 forks source link

[FEATURE] (type-safe-api) common smithy models without defining a service #825

Closed steven-taglohner closed 1 week ago

steven-taglohner commented 1 month ago

Describe the feature

Instantiate shared common structures (TypeSafeApiModelProject) without having to defined a Smithy service.

Use Case

Defining a common structure without the need of a service is useful in the scenario where the common structure is solely used to declare structures shared across various API’s.

Proposed Solution

For service-less projects:

Don’t generate OpenAPI projections Don’t run parse-openapi-spec script

Other Information

No response

Acknowledgements

PDK version used

Typescript

What languages will this feature affect?

No response

Environment details (OS name and version, etc.)

UNIX-based

cogwirrel commented 1 month ago

Hey, apologies your previous issue (https://github.com/aws/aws-pdk/issues/757) got automatically closed!

I wondered if you might be able to elaborate on your need for this - is it just desire to reduce build time by skipping the projections/scripts that aren't necessary for standalone model projects?