Skip to content

Commit

Permalink
Fix syntax error in noncompliant example
Browse files Browse the repository at this point in the history
  • Loading branch information
egon-okerman-sonarsource committed Jan 4, 2024
1 parent 125ffb7 commit edee282
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rules/S5131/python/how-to-fix-it/fastapi.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ app = FastAPI()
@app.get("/example")
def example(input: str):
json = json.dumps({"data": input})
return Response(json) # Noncompliant
json_str = json.dumps({"data": input})
return Response(json_str) # Noncompliant
----

[source,python,diff-id=42,diff-type=noncompliant]
Expand Down

0 comments on commit edee282

Please sign in to comment.