smithy icon indicating copy to clipboard operation
smithy copied to clipboard

Feature request : allow the smithy-build CLI to source models from some SPI-loaded interface

Open Baccata opened this issue 2 months ago • 1 comments

It'd be nice if smithy-build provided a way for services to be loaded programmatically. A usecase would be for it to allow models resulting from translations from other formats, like openapi, typespec, proto, etc.

At the moment, the only way to achieve this is by abusing the projection mechanism, which seems neither correct nor ergonomic.

Baccata avatar Oct 19 '25 20:10 Baccata

We handle model conversions internally by composing build steps. So a dedicated converter tool converts the old format to Smithy and saves it to a temporary build directory. The files in that build directory are then added as a source or import in the smithy build.

Is there anything that makes this sort of workflow impractical for your case?

JordonPhillips avatar Nov 11 '25 13:11 JordonPhillips