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: regenerate the OpenAPI spec for msgspec 0.22 (#11132)

Dylan Madisettic51a2859d23b
diff --git a/packages/openapi/api.yaml b/packages/openapi/api.yaml
index 754877bbda..b398dbfbf4 100644
--- a/packages/openapi/api.yaml
+++ b/packages/openapi/api.yaml
@@ -87,8 +87,8 @@ components:
type: string
context:
anyOf:
- - type: 'null'
- $ref: '#/components/schemas/AiCompletionContext'
+ - type: 'null'
default: null
id:
anyOf:
@@ -471,16 +471,16 @@ components:
- items:
$ref: '#/components/schemas/CellOutput'
type: array
- - type: 'null'
- $ref: '#/components/schemas/CellOutput'
+ - type: 'null'
default: null
op:
enum:
- cell-op
output:
anyOf:
- - type: 'null'
- $ref: '#/components/schemas/CellOutput'
+ - type: 'null'
default: null
run_id:
anyOf:
@@ -1133,8 +1133,8 @@ components:
- data-column-preview
stats:
anyOf:
- - type: 'null'
- $ref: '#/components/schemas/ColumnStats'
+ - type: 'null'
default: null
table_name:
type: string
@@ -1530,8 +1530,8 @@ components:
propertyName: kind
tree:
anyOf:
- - type: 'null'
- $ref: '#/components/schemas/DependencyTreeNode'
+ - type: 'null'
required:
- tree
- context
@@ -2009,8 +2009,8 @@ components:
properties:
cellOutputs:
anyOf:
- - type: 'null'
- $ref: '#/components/schemas/CellOutputs'
+ - type: 'null'
default: null
code:
type: string
@@ -2043,8 +2043,8 @@ components:
properties:
cellOutputs:
anyOf:
- - type: 'null'
- $ref: '#/components/schemas/CellOutputs'
+ - type: 'null'
default: null
code:
type: string
@@ -2254,8 +2254,8 @@ components:
properties:
info:
anyOf:
- - type: 'null'
- $ref: '#/components/schemas/FileInfo'
+ - type: 'null'
default: null
message:
anyOf:
@@ -2322,8 +2322,8 @@ components:
properties:
info:
anyOf:
- - type: 'null'
- $ref: '#/components/schemas/FileInfo'
+ - type: 'null'
default: null
message:
anyOf:
@@ -2416,8 +2416,8 @@ components:
type: string
opengraph:
anyOf:
- - type: 'null'
- $ref: '#/components/schemas/OpenGraphMetadata'
+ - type: 'null'
default: null
path:
type: string
@@ -2472,8 +2472,8 @@ components:
properties:
info:
anyOf:
- - type: 'null'
- $ref: '#/components/schemas/FileInfo'
+ - type: 'null'
default: null
message:
anyOf:
@@ -2582,8 +2582,8 @@ components:
properties:
info:
anyOf:
- - type: 'null'
- $ref: '#/components/schemas/FileInfo'
+ - type: 'null'
default: null
message:
anyOf:
@@ -4140,8 +4140,8 @@ components:
type: array
esm_spec:
anyOf:
- - type: 'null'
- $ref: '#/components/schemas/EsmSpec'
+ - type: 'null'
default: null
method:
enum:
@@ -4204,8 +4204,8 @@ components:
type: array
esm_spec:
anyOf:
- - type: 'null'
- $ref: '#/components/schemas/EsmSpec'
+ - type: 'null'
default: null
method:
enum:
@@ -5116,8 +5116,8 @@ components:
$ref: '#/components/schemas/RequestId'
table:
anyOf:
- - type: 'null'
- $ref: '#/components/schemas/DataTable'
+ - type: 'null'
required:
- op
- request_id
@@ -6471,15 +6471,15 @@ components:
- validate-sql-result
parse_result:
anyOf:
- - type: 'null'
- $ref: '#/components/schemas/SqlParseResult'
+ - type: 'null'
default: null
request_id:
type: string
validate_result:
anyOf:
- - type: 'null'
- $ref: '#/components/schemas/SqlCatalogCheckResult'
+ - type: 'null'
default: null
required:
- op
@@ -6577,12 +6577,12 @@ components:
title: VariablesNotification
type: object
VenvConfig:
- description: "Configuration for an external Python environment in edit mode.\n\n\
- \ Launches the notebook kernel in an existing virtualenv. Applies to\n single\
- \ notebooks and directories when editing without `--sandbox`.\n\n **Keys.**\n\
- \n - `path`: path to a virtualenv directory (absolute or relative to\n \
- \ pyproject.toml)\n - `writable`: if true, marimo will manage script metadata\
- \ (inline\n dependencies). Defaults to false."
+ description: "Configuration for an external Python environment in edit mode.\n\
+ \n Launches the notebook kernel in an existing virtualenv. Applies to\n\
+ \ single notebooks and directories when editing without `--sandbox`.\n\n\
+ \ **Keys.**\n\n - `path`: path to a virtualenv directory (absolute or\
+ \ relative to\n pyproject.toml)\n - `writable`: if true, marimo will\
+ \ manage script metadata (inline\n dependencies). Defaults to false."
properties:
path:
type: string
diff --git a/packages/openapi/src/api.ts b/packages/openapi/src/api.ts
index a6aeb0d17a..b341d11d08 100644
--- a/packages/openapi/src/api.ts
+++ b/packages/openapi/src/api.ts
@@ -3862,7 +3862,7 @@ export interface components {
AiCompletionRequest: {
code: string;
/** @default null */
- context?: null | components["schemas"]["AiCompletionContext"];
+ context?: components["schemas"]["AiCompletionContext"] | null;
/** @default null */
id?: string | null;
includeOtherCode: string;
@@ -4145,12 +4145,12 @@ export interface components {
/** @default null */
console?:
| components["schemas"]["CellOutput"][]
- | null
- | components["schemas"]["CellOutput"];
+ | components["schemas"]["CellOutput"]
+ | null;
/** @enum {unknown} */
op: "cell-op";
/** @default null */
- output?: null | components["schemas"]["CellOutput"];
+ output?: components["schemas"]["CellOutput"] | null;
/** @default null */
run_id?: string | null;
serialization?: string | null;
@@ -4526,7 +4526,7 @@ export interface components {
/** @enum {unknown} */
op: "data-column-preview";
/** @default null */
- stats?: null | components["schemas"]["ColumnStats"];
+ stats?: components["schemas"]["ColumnStats"] | null;
table_name: string;
};
/**
@@ -4766,7 +4766,7 @@ export interface components {
context:
| components["schemas"]["SandboxPackageContext"]
| components["schemas"]["PackageManagerContext"];
- tree: null | components["schemas"]["DependencyTreeNode"];
+ tree: components["schemas"]["DependencyTreeNode"] | null;
};
/**
* DetectedDataSource
@@ -5062,7 +5062,7 @@ export interface components {
*/
ExecuteScratchpadCommand: {
/** @default null */
- cellOutputs?: null | components["schemas"]["CellOutputs"];
+ cellOutputs?: components["schemas"]["CellOutputs"] | null;
code: string;
/** @default null */
notebookCells?: components["schemas"]["NotebookCell"][] | null;
@@ -5076,7 +5076,7 @@ export interface components {
/** ExecuteScratchpadRequest */
ExecuteScratchpadRequest: {
/** @default null */
- cellOutputs?: null | components["schemas"]["CellOutputs"];
+ cellOutputs?: components["schemas"]["CellOutputs"] | null;
code: string;
/** @default null */
notebookCells?: components["schemas"]["NotebookCell"][] | null;
@@ -5190,7 +5190,7 @@ export interface components {
/** FileCopyResponse */
FileCopyResponse: {
/** @default null */
- info?: null | components["schemas"]["FileInfo"];
+ info?: components["schemas"]["FileInfo"] | null;
/** @default null */
message?: string | null;
success: boolean;
@@ -5227,7 +5227,7 @@ export interface components {
/** FileCreateResponse */
FileCreateResponse: {
/** @default null */
- info?: null | components["schemas"]["FileInfo"];
+ info?: components["schemas"]["FileInfo"] | null;
/** @default null */
message?: string | null;
success: boolean;
@@ -5271,7 +5271,7 @@ export interface components {
lastModified?: number | null;
name: string;
/** @default null */
- opengraph?: null | components["schemas"]["OpenGraphMetadata"];
+ opengraph?: components["schemas"]["OpenGraphMetadata"] | null;
path: string;
/** @default null */
size?: number | null;
@@ -5294,7 +5294,7 @@ export interface components {
/** FileMoveResponse */
FileMoveResponse: {
/** @default null */
- info?: null | components["schemas"]["FileInfo"];
+ info?: components["schemas"]["FileInfo"] | null;
/** @default null */
message?: string | null;
success: boolean;
@@ -5345,7 +5345,7 @@ export interface components {
/** FileUpdateResponse */
FileUpdateResponse: {
/** @default null */
- info?: null | components["schemas"]["FileInfo"];
+ info?: components["schemas"]["FileInfo"] | null;
/** @default null */
message?: string | null;
success: boolean;
@@ -6309,7 +6309,7 @@ export interface components {
buffer_paths: (string | number)[][];
buffers: components["schemas"]["Base64String"][];
/** @default null */
- esm_spec?: null | components["schemas"]["EsmSpec"];
+ esm_spec?: components["schemas"]["EsmSpec"] | null;
/** @enum {unknown} */
method: "open";
state: Record<string, any>;
@@ -6341,7 +6341,7 @@ export interface components {
buffer_paths: (string | number)[][];
buffers: components["schemas"]["Base64String"][];
/** @default null */
- esm_spec?: null | components["schemas"]["EsmSpec"];
+ esm_spec?: components["schemas"]["EsmSpec"] | null;
/** @enum {unknown} */
method: "update";
state: Record<string, any>;
@@ -6940,7 +6940,7 @@ export interface components {
/** @enum {unknown} */
op: "sql-table-preview";
request_id: components["schemas"]["RequestId"];
- table: null | components["schemas"]["DataTable"];
+ table: components["schemas"]["DataTable"] | null;
};
/**
* SafeLiteralDiscoveryValue
@@ -7784,10 +7784,10 @@ export interface components {
/** @enum {unknown} */
op: "validate-sql-result";
/** @default null */
- parse_result?: null | components["schemas"]["SqlParseResult"];
+ parse_result?: components["schemas"]["SqlParseResult"] | null;
request_id: string;
/** @default null */
- validate_result?: null | components["schemas"]["SqlCatalogCheckResult"];
+ validate_result?: components["schemas"]["SqlCatalogCheckResult"] | null;
};
/** VariableContext */
VariableContext: {
diff --git a/pyproject.toml b/pyproject.toml
index 26f307d673..c97cbd8a11 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -53,7 +53,7 @@ dependencies = [
"narwhals>=2.0.0",
# for packaging.version; not sure what the lower bound is.
"packaging",
- "msgspec>=0.20.0",
+ "msgspec>=0.22.0",
# for IPC, required for marimo edit --sandbox, marimo run <multiple notebooks>
"pyzmq>=27.1.0; python_version < '3.15' and sys_platform != 'emscripten'",
]
diff --git a/tests/snapshots/dependencies.txt b/tests/snapshots/dependencies.txt
index 2ef593ba67..ccd65e715c 100644
--- a/tests/snapshots/dependencies.txt
+++ b/tests/snapshots/dependencies.txt
@@ -4,7 +4,7 @@ itsdangerous>=2.0.0
jedi>=0.18.0,<0.21.0
loro>=1.10.0; sys_platform != 'emscripten' and sys_platform != 'android'
markdown>=3.6,<4
-msgspec>=0.20.0
+msgspec>=0.22.0
narwhals>=2.0.0
packaging
psutil>=5.0; sys_platform != 'emscripten' and sys_platform != 'android'