Skip to content

Instantly share code, notes, and snippets.

@tonyfast
Created November 22, 2025 22:05
Show Gist options
  • Select an option

  • Save tonyfast/ddb3444b4131dac52d8dbca36dc80ca2 to your computer and use it in GitHub Desktop.

Select an option

Save tonyfast/ddb3444b4131dac52d8dbca36dc80ca2 to your computer and use it in GitHub Desktop.
$defs:
input:
$id: input
type: object
properties:
metadata:
$ref: "#metadata"
source:
$ref: "#source"
cell:
$id: cell
allOf:
- $ref: "#input"
- $ref: "#cell_types"
source:
$id: source
oneOf:
- type: string
-
type: array
items:
type: string
cell_types:
oneOf:
- $ref: "#markdown_cell"
- $ref: "#html_cell"
- $ref: "#code_cell"
- $ref: "#raw_cell"
- $ref: "#group_cell"
markdown_cell:
$id: markdown_cell
properties:
cell_type:
const: markdown
source:
contentMediaType: text/markdown
html_cell:
$id: html_cell
properties:
cell_type:
const: html
source:
contentMediaType: text/html
group_cell:
$id: group_cell
properties:
cell_type:
const: group
source:
contentMediaType: application/json
contentSchema:
properties:
id:
type: array
items:
type: string
code_cell:
$id: code_cell
properties:
cell_type:
const: code
source:
contentMediaType: text/x-python
raw_cell:
$id: raw_cell
properties:
cell_type:
const: raw
source:
contentMediaType: text/plain
allyhood_entry:
$id: allyhood_entry
properties:
cell_type:
const: entry
source:
contentMediaType: application/json
contentSchema:
properties:
q:
type: str
id:
format: uuid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment