Skip to content

Commit

Permalink
use jsonc in code blocks
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Ludes <[email protected]>
  • Loading branch information
deerbone committed Oct 16, 2024
1 parent 2466739 commit ba9cd81
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ Since query parameters can be used more than once, they are stored in an array a

Here is an example that includes query parameters gopherColor and gopherAge in the response, one of which can be used more than once:

````json
````jsonc
// expects a request to, for example, GET /gophers/bca49e8a-82dd-4c5d-b886-13a6ceb3744b?gopherColor=Blue&gopherColor=Purple&gopherAge=42
[
{
Expand Down Expand Up @@ -621,7 +621,7 @@ This example also showcases the functions `timeNow`, `timeUTC`, `timeAdd`, `time

Here is an example that includes the request body in the response:

````json
````jsonc
// imposters/gophers.imp.json
[
{
Expand All @@ -647,7 +647,7 @@ Here is an example that includes the request body in the response:
}
]
````
````tmpl
````jsonc
// responses/create_gopher_response.json.tmpl
{
"data": {
Expand All @@ -665,7 +665,7 @@ Here is an example that includes the request body in the response:
}

````
````json
````jsonc
// request body to POST /gophers/bca49e8a-82dd-4c5d-b886-13a6ceb3744b?gopherColor=Blue&gopherColor=Purple&gopherAge=42
{
"data": {
Expand Down

0 comments on commit ba9cd81

Please sign in to comment.