Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] [open-api-gateway] Smithy Support #145

Closed
2 tasks done
cogwirrel opened this issue Sep 1, 2022 · 0 comments · Fixed by #160
Closed
2 tasks done

[FEATURE] [open-api-gateway] Smithy Support #145

cogwirrel opened this issue Sep 1, 2022 · 0 comments · Fixed by #160

Comments

@cogwirrel
Copy link
Member

Describe the feature

As an alternative to OpenAPI, it would be great if APIs could be defined with Smithy, a protocol-agnostic IDL.

Use Case

Defining APIs in an alternative, non-yaml format, less verbose than OpenAPI without the need to understand $ref and allOf etc.

Proposed Solution

New projen constructs SmithyApiGateway<Language>Project could be exposed by the open-api-gateway package which will generate the sample hello world api in Smithy IDL.

Smithy IDL can be converted to OpenAPI, so we would add this as a pre-step such that the generated clients, construct etc can be reused.

Smithy IDL allows for authorizers to be specified, so we would need to figure out a neat way to marry up those specified in the OpenApiGatewayLambdaApi CDK construct with those specified in the spec.

Other Information

Generated lambda handler wrappers would all still be generated and in theory would work with no change, however we might also wish to provide the option to use the Smithy Server SDK for Typescript as an alternative for writing type-safe lambda handlers in typescript.

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

PDK version used

0.8.x

What languages will this feature affect?

Typescript, Java, Python

Environment details (OS name and version, etc.)

All!

cogwirrel added a commit that referenced this issue Sep 12, 2022
…efinition language

Adds three new projen project types (ts/python/java) where Smithy can be used instead of OpenAPI as
the interface definition language. Smithy is projected into OpenAPI as a pre-step, which allows us
to reuse the same generated clients, handler wrappers and infrastructure.

fix #145
cogwirrel added a commit that referenced this issue Sep 12, 2022
…efinition language

Adds three new projen project types (ts/python/java) where Smithy can be used instead of OpenAPI as
the interface definition language. Smithy is projected into OpenAPI as a pre-step, which allows us
to reuse the same generated clients, handler wrappers and infrastructure.

fix #145
cogwirrel added a commit that referenced this issue Sep 13, 2022
…efinition language

Adds three new projen project types (ts/python/java) where Smithy can be used instead of OpenAPI as
the interface definition language. Smithy is projected into OpenAPI as a pre-step, which allows us
to reuse the same generated clients, handler wrappers and infrastructure.

fix #145
cogwirrel added a commit that referenced this issue Sep 13, 2022
…efinition language

Adds three new projen project types (ts/python/java) where Smithy can be used instead of OpenAPI as
the interface definition language. Smithy is projected into OpenAPI as a pre-step, which allows us
to reuse the same generated clients, handler wrappers and infrastructure.

fix #145
cogwirrel added a commit that referenced this issue Sep 13, 2022
…efinition language

Adds three new projen project types (ts/python/java) where Smithy can be used instead of OpenAPI as
the interface definition language. Smithy is projected into OpenAPI as a pre-step, which allows us
to reuse the same generated clients, handler wrappers and infrastructure.

fix #145
cogwirrel added a commit that referenced this issue Sep 14, 2022
…efinition language

Adds three new projen project types (ts/python/java) where Smithy can be used instead of OpenAPI as
the interface definition language. Smithy is projected into OpenAPI as a pre-step, which allows us
to reuse the same generated clients, handler wrappers and infrastructure.

fix #145
cogwirrel added a commit that referenced this issue Sep 14, 2022
…efinition language

Adds three new projen project types (ts/python/java) where Smithy can be used instead of OpenAPI as
the interface definition language. Smithy is projected into OpenAPI as a pre-step, which allows us
to reuse the same generated clients, handler wrappers and infrastructure.

fix #145
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant