# This file is generated by scripts/generate_schemas.py
components:
  schemas:
    NotebookCell:
      description: Code cell specific structure
      properties:
        code:
          anyOf:
          - type: string
          - type: 'null'
        code_hash:
          anyOf:
          - type: string
          - type: 'null'
        config:
          $ref: '#/components/schemas/NotebookCellConfig'
        id:
          anyOf:
          - type: string
          - type: 'null'
        name:
          anyOf:
          - type: string
          - type: 'null'
      required:
      - code
      - code_hash
      - config
      - id
      - name
      title: NotebookCell
      type: object
    NotebookCellConfig:
      description: Configuration for a notebook cell
      properties:
        column:
          anyOf:
          - type: integer
          - type: 'null'
        disabled:
          anyOf:
          - type: boolean
          - type: 'null'
        hide_code:
          anyOf:
          - type: boolean
          - type: 'null'
      required: []
      title: NotebookCellConfig
      type: object
    NotebookMetadata:
      description: Metadata about the notebook
      properties:
        marimo_version:
          anyOf:
          - type: string
          - type: 'null'
      required: []
      title: NotebookMetadata
      type: object
    NotebookV1:
      description: Main notebook structure
      properties:
        cells:
          items:
            $ref: '#/components/schemas/NotebookCell'
          type: array
        metadata:
          $ref: '#/components/schemas/NotebookMetadata'
        version:
          enum:
          - '1'
      required:
      - cells
      - metadata
      - version
      title: NotebookV1
      type: object
info:
  title: marimo
openapi: 3.0.0
