Skip to content

Commit bd22266

Browse files
committed
chore: consistent response type
1 parent 599c844 commit bd22266

File tree

9 files changed

+495
-271
lines changed

9 files changed

+495
-271
lines changed

dev/inputs.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export const inputs = {
77
full: path.resolve(specsPath, '3.1.x', 'full.yaml'),
88
heyapi: 'hey-api/backend',
99
local: 'http://localhost:8000/openapi.json',
10+
mockers: path.resolve(specsPath, '3.1.x', 'mockers.yaml'),
1011
opencode: path.resolve(specsPath, '3.1.x', 'opencode.yaml'),
1112
petstore:
1213
'https://raw.githubusercontent.com/swagger-api/swagger-petstore/master/src/main/resources/openapi.yaml',

dev/playground.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ const server = setupServer(
3636
// }),
3737
...handlers.all({
3838
pick: {
39-
// get(info) {
40-
// console.log('Received request for projectUpdate with info:', info);
41-
// },
39+
// ...
4240
},
4341
}),
4442
);
@@ -47,9 +45,6 @@ server.listen();
4745
async function run() {
4846
// const { client, server } = await createOpencode();
4947
// console.log(client, server);
50-
client.setConfig({
51-
baseUrl: 'https://api.heyapi.dev/',
52-
});
5348
const sdk = new Sdk({ client });
5449
// const published = await sdk.tui.publish({
5550
// body: {
@@ -62,7 +57,7 @@ async function run() {
6257
// directory: 'main',
6358
// });
6459
// console.log('Published:', published.data, published.error);
65-
const project = await sdk.get({
60+
const project = await sdk.getFoo({
6661
// ...
6762
});
6863
console.log('Updated Project:', project.data, project.error);

0 commit comments

Comments
 (0)