Skip to content

Commit 62d434d

Browse files
authored
Fix json example and generator (#143)
1 parent 7bcc09a commit 62d434d

File tree

5 files changed

+142
-123
lines changed

5 files changed

+142
-123
lines changed

examples/json/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# JSON example
22

3-
This example demonstrates writing a function that accepts a JSON request and
4-
sends a JSON response to the client.
3+
This example demonstrates writing a function that accepts and returns JSON.
54

65
The basic shape of the function handler looks like this:
76

@@ -18,7 +17,6 @@ example request:
1817
{
1918
"name": "World"
2019
}
21-
2220
```
2321

2422
The function will send a JSON document as the response. Here's an example

functions_framework_tool/lib/src/generators/json.g.dart

Lines changed: 125 additions & 115 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

functions_framework_tool/templates/json/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# JSON example
22

3-
This example demonstrates writing a function that accepts a JSON request and
4-
sends a JSON response to the client.
3+
This example demonstrates writing a function that accepts and returns JSON.
54

65
The basic shape of the function handler looks like this:
76

@@ -18,7 +17,6 @@ example request:
1817
{
1918
"name": "World"
2019
}
21-
2220
```
2321

2422
The function will send a JSON document as the response. Here's an example

0 commit comments

Comments
 (0)