-
Notifications
You must be signed in to change notification settings - Fork 8
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
Explicitly reject unsupported shapes/traits #185
Comments
@streaming
trait
Note the set of supported features can be different between the Smithy plugin and the CLI: the former should reject resources as per #223, but the latter can allow them. |
We should also have different selector values per target language. |
Just the README updates from #185: * Calling out runtime libraries limitations in the top level README * Moving codegen/README.md to codegen/smithy-dafny-codegen/README.md * Updating a few inaccuracies in the codegen README
Applied the |
@lucasmcdonald3 work currently uses the Java Docs trait to add documentation to generated Python. It works pretty well. As such, @robin-aws , what do you think about refactoring the JavaDoc trait to just be a poor man's documentation trait, I'd rather not invent a PyDocs trait... but it would also to be weird to see the JavaDoc trait gain support in Python, and then Go... etc. |
Add an extern to handle this extra case.
E.g.
@streaming
is currently silently ignored, leading to type errors (e.g.System.IO.Stream
vsSystem.IO.MemoryStream
).Part of a more general class of "silently does the wrong thing on unrecognized shapes/traits" bugs - is there a more generic way code generation could fail closed on unsupported things?I suspect we can write a selector expression for all shapes and traits this generator supports, and just do an initial application of this selector to every model and fail if anything is not covered. This would be similar to the selector the codegen README suggests using to filter out such unsupported features.
The text was updated successfully, but these errors were encountered: