Skip to content

Commit

Permalink
Update php code sample response_syntax to 'php'
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-balitskyi committed Sep 16, 2024
1 parent b1b96b5 commit a07173b
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion src/lib/code-sample/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export const createCodeSample = async (
request: createPhpRequest(codeSampleDefinition, context),
response: createPhpResponse(codeSampleDefinition, context),
request_syntax: 'php',
response_syntax: 'json',
response_syntax: 'php',
},
seam_cli: {
title: 'Seam CLI',
Expand Down
60 changes: 30 additions & 30 deletions test/snapshots/blueprint.test.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ Generated by [AVA](https://avajs.dev).
$seam->foos->get(foo_id:"8d7e0b3a-b889-49a7-9164-4b71a0506a33")`,
request_syntax: 'php',
response: '["foo_id" => "8d7e0b3a-b889-49a7-9164-4b71a0506a33","name" => "Best foo","nullable_prop" => null,"number_prop" => 10,"object_prop" => ["foo" => "bar"],"array_prop" => ["foo", "bar"]]',
response_syntax: 'json',
response_syntax: 'php',
title: 'PHP',
},
python: {
Expand Down Expand Up @@ -233,7 +233,7 @@ Generated by [AVA](https://avajs.dev).
$seam->foos->get(foo_id:"8d7e0b3a-b889-49a7-9164-4b71a0506a33")`,
request_syntax: 'php',
response: '["foo_id" => "8d7e0b3a-b889-49a7-9164-4b71a0506a33","name" => "Best foo","nullable_prop" => null,"number_prop" => 10,"object_prop" => ["foo" => "bar"],"array_prop" => ["foo", "bar"]]',
response_syntax: 'json',
response_syntax: 'php',
title: 'PHP',
},
python: {
Expand Down Expand Up @@ -323,7 +323,7 @@ Generated by [AVA](https://avajs.dev).
$seam->foos->list()`,
request_syntax: 'php',
response: '[["foo_id" => "8d7e0b3a-b889-49a7-9164-4b71a0506a33","name" => "Best foo","nullable_prop" => null,"number_prop" => 10,"object_prop" => ["foo" => "bar"],"array_prop" => ["foo", "bar"]]]',
response_syntax: 'json',
response_syntax: 'php',
title: 'PHP',
},
python: {
Expand Down Expand Up @@ -413,7 +413,7 @@ Generated by [AVA](https://avajs.dev).
$seam->foos->list()`,
request_syntax: 'php',
response: '[["foo_id" => "8d7e0b3a-b889-49a7-9164-4b71a0506a33","name" => "Best foo","nullable_prop" => null,"number_prop" => 10,"object_prop" => ["foo" => "bar"],"array_prop" => ["foo", "bar"]]]',
response_syntax: 'json',
response_syntax: 'php',
title: 'PHP',
},
python: {
Expand Down Expand Up @@ -503,7 +503,7 @@ Generated by [AVA](https://avajs.dev).
$seam->foos->get(foo_id:"8d7e0b3a-b889-49a7-9164-4b71a0506a33")`,
request_syntax: 'php',
response: '["foo_id" => "8d7e0b3a-b889-49a7-9164-4b71a0506a33","name" => "Best foo","nullable_prop" => null,"number_prop" => 10,"object_prop" => ["foo" => "bar"],"array_prop" => ["foo", "bar"]]',
response_syntax: 'json',
response_syntax: 'php',
title: 'PHP',
},
python: {
Expand Down Expand Up @@ -593,7 +593,7 @@ Generated by [AVA](https://avajs.dev).
$seam->foos->get(foo_id:"8d7e0b3a-b889-49a7-9164-4b71a0506a33")`,
request_syntax: 'php',
response: '["foo_id" => "8d7e0b3a-b889-49a7-9164-4b71a0506a33","name" => "Best foo","nullable_prop" => null,"number_prop" => 10,"object_prop" => ["foo" => "bar"],"array_prop" => ["foo", "bar"]]',
response_syntax: 'json',
response_syntax: 'php',
title: 'PHP',
},
python: {
Expand Down Expand Up @@ -683,7 +683,7 @@ Generated by [AVA](https://avajs.dev).
$seam->foos->list()`,
request_syntax: 'php',
response: '[["foo_id" => "8d7e0b3a-b889-49a7-9164-4b71a0506a33","name" => "Best foo","nullable_prop" => null,"number_prop" => 10,"object_prop" => ["foo" => "bar"],"array_prop" => ["foo", "bar"]]]',
response_syntax: 'json',
response_syntax: 'php',
title: 'PHP',
},
python: {
Expand Down Expand Up @@ -773,7 +773,7 @@ Generated by [AVA](https://avajs.dev).
$seam->foos->list()`,
request_syntax: 'php',
response: '[["foo_id" => "8d7e0b3a-b889-49a7-9164-4b71a0506a33","name" => "Best foo","nullable_prop" => null,"number_prop" => 10,"object_prop" => ["foo" => "bar"],"array_prop" => ["foo", "bar"]]]',
response_syntax: 'json',
response_syntax: 'php',
title: 'PHP',
},
python: {
Expand Down Expand Up @@ -871,7 +871,7 @@ Generated by [AVA](https://avajs.dev).
$seam->transport->air->planes->list()`,
request_syntax: 'php',
response: '[["plane_id" => "9d3163f9-9185-40d3-a0ce-a03d3c7ce402","name" => "Woosh"]]',
response_syntax: 'json',
response_syntax: 'php',
title: 'PHP',
},
python: {
Expand Down Expand Up @@ -952,7 +952,7 @@ Generated by [AVA](https://avajs.dev).
$seam->transport->air->planes->list()`,
request_syntax: 'php',
response: '[["plane_id" => "9d3163f9-9185-40d3-a0ce-a03d3c7ce402","name" => "Woosh"]]',
response_syntax: 'json',
response_syntax: 'php',
title: 'PHP',
},
python: {
Expand Down Expand Up @@ -1170,9 +1170,9 @@ Generated by [AVA](https://avajs.dev).
<?php␊
$seam->foos->get(foo_id:"8d7e0b3a-b889-49a7-9164-4b71a0506a33")`,
request_syntax: 'php',
response: `// json
response: `// php
["foo_id" => "8d7e0b3a-b889-49a7-9164-4b71a0506a33","name" => "Best foo","nullable_prop" => null,"number_prop" => 10,"object_prop" => ["foo" => "bar"],"array_prop" => ["foo", "bar"]]`,
response_syntax: 'json',
response_syntax: 'php',
title: 'PHP',
},
python: {
Expand Down Expand Up @@ -1270,9 +1270,9 @@ Generated by [AVA](https://avajs.dev).
<?php␊
$seam->foos->get(foo_id:"8d7e0b3a-b889-49a7-9164-4b71a0506a33")`,
request_syntax: 'php',
response: `// json
response: `// php
["foo_id" => "8d7e0b3a-b889-49a7-9164-4b71a0506a33","name" => "Best foo","nullable_prop" => null,"number_prop" => 10,"object_prop" => ["foo" => "bar"],"array_prop" => ["foo", "bar"]]`,
response_syntax: 'json',
response_syntax: 'php',
title: 'PHP',
},
python: {
Expand Down Expand Up @@ -1370,9 +1370,9 @@ Generated by [AVA](https://avajs.dev).
<?php␊
$seam->foos->list()`,
request_syntax: 'php',
response: `// json
response: `// php
[["foo_id" => "8d7e0b3a-b889-49a7-9164-4b71a0506a33","name" => "Best foo","nullable_prop" => null,"number_prop" => 10,"object_prop" => ["foo" => "bar"],"array_prop" => ["foo", "bar"]]]`,
response_syntax: 'json',
response_syntax: 'php',
title: 'PHP',
},
python: {
Expand Down Expand Up @@ -1470,9 +1470,9 @@ Generated by [AVA](https://avajs.dev).
<?php␊
$seam->foos->list()`,
request_syntax: 'php',
response: `// json
response: `// php
[["foo_id" => "8d7e0b3a-b889-49a7-9164-4b71a0506a33","name" => "Best foo","nullable_prop" => null,"number_prop" => 10,"object_prop" => ["foo" => "bar"],"array_prop" => ["foo", "bar"]]]`,
response_syntax: 'json',
response_syntax: 'php',
title: 'PHP',
},
python: {
Expand Down Expand Up @@ -1570,9 +1570,9 @@ Generated by [AVA](https://avajs.dev).
<?php␊
$seam->foos->get(foo_id:"8d7e0b3a-b889-49a7-9164-4b71a0506a33")`,
request_syntax: 'php',
response: `// json
response: `// php
["foo_id" => "8d7e0b3a-b889-49a7-9164-4b71a0506a33","name" => "Best foo","nullable_prop" => null,"number_prop" => 10,"object_prop" => ["foo" => "bar"],"array_prop" => ["foo", "bar"]]`,
response_syntax: 'json',
response_syntax: 'php',
title: 'PHP',
},
python: {
Expand Down Expand Up @@ -1670,9 +1670,9 @@ Generated by [AVA](https://avajs.dev).
<?php␊
$seam->foos->get(foo_id:"8d7e0b3a-b889-49a7-9164-4b71a0506a33")`,
request_syntax: 'php',
response: `// json
response: `// php
["foo_id" => "8d7e0b3a-b889-49a7-9164-4b71a0506a33","name" => "Best foo","nullable_prop" => null,"number_prop" => 10,"object_prop" => ["foo" => "bar"],"array_prop" => ["foo", "bar"]]`,
response_syntax: 'json',
response_syntax: 'php',
title: 'PHP',
},
python: {
Expand Down Expand Up @@ -1770,9 +1770,9 @@ Generated by [AVA](https://avajs.dev).
<?php␊
$seam->foos->list()`,
request_syntax: 'php',
response: `// json
response: `// php
[["foo_id" => "8d7e0b3a-b889-49a7-9164-4b71a0506a33","name" => "Best foo","nullable_prop" => null,"number_prop" => 10,"object_prop" => ["foo" => "bar"],"array_prop" => ["foo", "bar"]]]`,
response_syntax: 'json',
response_syntax: 'php',
title: 'PHP',
},
python: {
Expand Down Expand Up @@ -1870,9 +1870,9 @@ Generated by [AVA](https://avajs.dev).
<?php␊
$seam->foos->list()`,
request_syntax: 'php',
response: `// json
response: `// php
[["foo_id" => "8d7e0b3a-b889-49a7-9164-4b71a0506a33","name" => "Best foo","nullable_prop" => null,"number_prop" => 10,"object_prop" => ["foo" => "bar"],"array_prop" => ["foo", "bar"]]]`,
response_syntax: 'json',
response_syntax: 'php',
title: 'PHP',
},
python: {
Expand Down Expand Up @@ -1978,9 +1978,9 @@ Generated by [AVA](https://avajs.dev).
<?php␊
$seam->transport->air->planes->list()`,
request_syntax: 'php',
response: `// json
response: `// php
[["plane_id" => "9d3163f9-9185-40d3-a0ce-a03d3c7ce402","name" => "Woosh"]]`,
response_syntax: 'json',
response_syntax: 'php',
title: 'PHP',
},
python: {
Expand Down Expand Up @@ -2069,9 +2069,9 @@ Generated by [AVA](https://avajs.dev).
<?php␊
$seam->transport->air->planes->list()`,
request_syntax: 'php',
response: `// json
response: `// php
[["plane_id" => "9d3163f9-9185-40d3-a0ce-a03d3c7ce402","name" => "Woosh"]]`,
response_syntax: 'json',
response_syntax: 'php',
title: 'PHP',
},
python: {
Expand Down
Binary file modified test/snapshots/blueprint.test.ts.snap
Binary file not shown.

0 comments on commit a07173b

Please sign in to comment.