Skip to content

Commit

Permalink
feat: add view.schema.json (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
pichoemr authored Feb 24, 2023
1 parent 188b7be commit fdd9f64
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
10 changes: 8 additions & 2 deletions api/components/view.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,19 @@
"props": {
"$ref": "../defs/props.schema.json"
},
"find": {
"description": "Find query.",
"$ref": "../defs/find.schema.json"
},
"query": {
"description": "The query to apply to the data.",
"type": "object"
"type": "object",
"deprecated": true
},
"coll": {
"description": "the collection where the query is applied",
"type": "string"
"type": "string",
"deprecated": true
},
"context": {
"type": "boolean"
Expand Down
25 changes: 25 additions & 0 deletions api/defs/find.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"$schema": "https://raw.githubusercontent.com/lenra-io/ex_component_schema/beta/priv/static/draft-lenra.json",
"$id": "defs/find.schema.json",
"title": "Find",
"description": "Find query.",
"type": "object",
"properties": {
"query": {
"description": "The query to apply to the data.",
"type": "object"
},
"coll": {
"description": "the collection where the query is applied",
"type": "string"
},
"projection": {
"description": "Filter data object.",
"type": "object"
}
},
"required": [
"coll"
],
"additionalProperties": false
}

0 comments on commit fdd9f64

Please sign in to comment.