-
Is there a way to generate the swagger definitions for the resources based on the JSON files in the generator folder? Is this something that smithy can do? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Currently the generator for the AWS SDK for .NET uses the JSON files you linked, which predate Smithy. I'm not aware of a OpenAPI generator for the JSON schema. As you hinted, Smithy does support converting Smithy models to OpenAPI. See Converting Smithy to OpenAPI in the Smithy docs. We do not commit the Smithy AWS models to the .NET repository since our generator doesn't use them yet, but some of the newer AWS SDKs do. For example JS V3 here: https://github.com/aws/aws-sdk-js-v3/tree/main/codegen/sdk-codegen/aws-models |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
Currently the generator for the AWS SDK for .NET uses the JSON files you linked, which predate Smithy. I'm not aware of a OpenAPI generator for the JSON schema.
As you hinted, Smithy does support converting Smithy models to OpenAPI. See Converting Smithy to OpenAPI in the Smithy docs.
We do not commit the Smithy AWS models to the .NET repository since our generator doesn't use them yet, but some of the newer AWS SDKs do. For example JS V3 here: https://github.com/aws/aws-sdk-js-v3/tree/main/codegen/sdk-codegen/aws-models