Skip to content

Conversation

@jonathan343
Copy link
Contributor

Summary

This PR addresses a codegen bug that results in the following error when trying to generate a client that supports multiple auth schemes:

Projection client failed: software.amazon.smithy.codegen.core.CodegenException: Command `python3 -m ruff check --fix` failed with output:

src/aws_sdk_bedrock_runtime/models.py:648:1: SyntaxError: Expected ',', found name
    |
646 |         effective_auth_schemes = [
647 |             ShapeID("aws.auth#sigv4")
648 | ShapeID("smithy.api#httpBearerAuth")
    | ^
649 |         ]
650 | )
    |

Problem: Multiple ShapeId objects are getting added to the effective_auth_schemes list without a , delimiter, resulting in a SyntaxError.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@jonathan343 jonathan343 requested a review from a team as a code owner August 27, 2025 14:49
@jonathan343 jonathan343 merged commit e115490 into smithy-lang:develop Aug 27, 2025
4 checks passed
@jonathan343 jonathan343 deleted the demo-fix branch August 27, 2025 20:16
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 this pull request may close these issues.

2 participants