Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

chore: make wasm/html sharing config not required (#5464)

Akshay Agrawalb3150d424f66
diff --git a/frontend/src/core/config/config-schema.ts b/frontend/src/core/config/config-schema.ts
index 6a703aa1ce..546586bb6e 100644
--- a/frontend/src/core/config/config-schema.ts
+++ b/frontend/src/core/config/config-schema.ts
@@ -165,8 +165,8 @@ export const UserConfigSchema = z
server: z.object({}).passthrough().default({}),
sharing: z
.object({
- html: z.boolean(),
- wasm: z.boolean(),
+ html: z.boolean().optional(),
+ wasm: z.boolean().optional(),
})
.passthrough()
.optional(),
diff --git a/marimo/_config/config.py b/marimo/_config/config.py
index 65445fa4d4..527d5839a7 100644
--- a/marimo/_config/config.py
+++ b/marimo/_config/config.py
@@ -394,8 +394,8 @@ class SharingConfig(TypedDict):
- `wasm`: if `False`, WebAssembly sharing options will be hidden from the UI
"""
- html: bool
- wasm: bool
+ html: NotRequired[bool]
+ wasm: NotRequired[bool]
@mddoc
diff --git a/openapi/api.yaml b/openapi/api.yaml
index 0cb6fded9a..19a56937f3 100644
--- a/openapi/api.yaml
+++ b/openapi/api.yaml
@@ -1731,9 +1731,6 @@ components:
type: boolean
wasm:
type: boolean
- required:
- - html
- - wasm
type: object
snippets:
properties:
diff --git a/openapi/src/api.ts b/openapi/src/api.ts
index e24fe51171..7b36b259c4 100644
--- a/openapi/src/api.ts
+++ b/openapi/src/api.ts
@@ -3256,8 +3256,8 @@ export interface components {
follow_symlink: boolean;
};
sharing?: {
- html: boolean;
- wasm: boolean;
+ html?: boolean;
+ wasm?: boolean;
};
snippets?: {
custom_paths?: string[];