Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Change mock output to json; Enable additional properties in api client

Tomas Valentafc5aa06e7af8
diff --git a/api-service/Makefile b/api-service/Makefile
index 7d44e1a72..af2b9c9db 100644
--- a/api-service/Makefile
+++ b/api-service/Makefile
@@ -5,7 +5,7 @@ generate-playground-client:
-g python-nextgen \
-o ./ \
--additional-properties=generateSourceCodeOnly=true \
- --additional-properties=disallowAdditionalPropertiesIfNotPresent=true \
+ --additional-properties=disallowAdditionalPropertiesIfNotPresent=false \
--additional-properties=packageName=playground_client \
--additional-properties=floatStrictType=false \
--additional-properties=allowStringInDateTimeParameters=true
diff --git a/api-service/playground/src/data/mockController.ts b/api-service/playground/src/data/mockController.ts
index b923b9dd5..c0a535e36 100644
--- a/api-service/playground/src/data/mockController.ts
+++ b/api-service/playground/src/data/mockController.ts
@@ -25,7 +25,7 @@ export class MockController extends Controller {
const data = mock({
files: files.map(f => [f.name, f.content]),
- output: 'string',
+ output: 'json',
interfaces: [targetInterface],
})