Allow customising the RefStrategy used by JsonSchemaConverter/OpenApiConverter #2144
Labels
archived
This issue is archived, meaning it may be re-opened in the future given new information or action.
feature-request
A feature should be added or improved.
While working on the Smithy specifications for OpenSearch we've come across a need to tweak how and when
$ref
s are introduced into the OpenAPI schema we generate from Smithy. This directly maps onto modifying theRefStrategy
used byJsonSchemaConverter
so that we can customise when certain types are inlined versus not and also how the schema/ref is named.Currently the
RefStrategy
is hard-coded toRefStrategy::createDefaultStrategy
, so I propose allowing this to be configured in some manner to use a custom implementation.The text was updated successfully, but these errors were encountered: