However, the current sbt plugin doesn’t provide a way to configure this; it simply calls the generate method that doesn’t take any configuration arguments:
Would it be possible that the sbt plugin expose a key to transform this configuration?
In the meantime, because it’s quite difficult to modify the build process from our sbt build, I am thinking of re-parsing and transform the outputted json...
I have a problem that is solved by calling
jsonAdd
on openapi generation. It’s the same as this: https://github.com/smithy-lang/smithy/issues/834It’s easy if I can control the arguments passed to the following method:
https://github.com/disneystreaming/alloy/blob/fd6b8b067b69e3033c288bb665de8054108bf747/modules/openapi/src/alloy/openapi/package.scala#L33
However, the current sbt plugin doesn’t provide a way to configure this; it simply calls the generate method that doesn’t take any configuration arguments:
https://github.com/disneystreaming/smithy4s/blob/ee9abfb9430879eeabc18dd9edab188f7b32c03d/modules/codegen/src/smithy4s/codegen/internals/CodegenImpl.scala#L67
Would it be possible that the sbt plugin expose a key to transform this configuration?
In the meantime, because it’s quite difficult to modify the build process from our sbt build, I am thinking of re-parsing and transform the outputted json...