Skip to content

Commit

Permalink
Update order property type in AI assistant and prompt schemas (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
tahpot authored Nov 26, 2024
2 parents a8e96c3 + 222630d commit 237b837
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
9 changes: 7 additions & 2 deletions ai/assistant/v0.1.0/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@
"description": "AI assistants and their configuration",
"type": "object",
"database": {
"name": "ai_assistant"
"name": "ai_assistant",
"indexes": {
"order": ["order", "insertedAt"],
"name": ["name", "insertedAt"],
"insertedAt": ["insertedAt"]
}
},
"allOf": [
{ "$ref": "https://core.schemas.verida.io/base/v0.1.0/schema.json" },
Expand All @@ -19,7 +24,7 @@
"description": "The user-friendly label"
},
"order": {
"type": "integer",
"type": "number",
"title": "Order"
}
},
Expand Down
9 changes: 7 additions & 2 deletions ai/prompt/v0.1.0/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@
"description": "Saved prompts for the assistant",
"type": "object",
"database": {
"name": "ai_prompt"
"name": "ai_prompt",
"indexes": {
"order": ["order", "insertedAt"],
"name": ["name", "insertedAt"],
"insertedAt": ["insertedAt"]
}
},
"allOf": [
{ "$ref": "https://core.schemas.verida.io/base/v0.1.0/schema.json" },
Expand All @@ -29,7 +34,7 @@
"description": "The actual prompt"
},
"order": {
"type": "integer",
"type": "number",
"title": "Order"
}
},
Expand Down

0 comments on commit 237b837

Please sign in to comment.