mirror of https://github.com/Hax-io/libpb
Added schema for unit tests
This commit is contained in:
parent
626660216b
commit
8b2ce3bce2
|
@ -93,6 +93,8 @@ To run tests you will want to enable the `pragma`s and `writeln`s. therefore pas
|
||||||
dub test -ddbg
|
dub test -ddbg
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Run pocketbase on the default port and then use the schema provided as `dummy.json` to test with (in a collection named `dummy`).
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
See [LICENSE](LICENSE)
|
See [LICENSE](LICENSE)
|
||||||
|
|
|
@ -0,0 +1,40 @@
|
||||||
|
{
|
||||||
|
"id": "iir9gleipa4n6lf",
|
||||||
|
"name": "dummy",
|
||||||
|
"type": "base",
|
||||||
|
"system": false,
|
||||||
|
"schema": [
|
||||||
|
{
|
||||||
|
"id": "fkyktfrf",
|
||||||
|
"name": "name",
|
||||||
|
"type": "text",
|
||||||
|
"system": false,
|
||||||
|
"required": false,
|
||||||
|
"unique": false,
|
||||||
|
"options": {
|
||||||
|
"min": null,
|
||||||
|
"max": null,
|
||||||
|
"pattern": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "31mcl2nq",
|
||||||
|
"name": "age",
|
||||||
|
"type": "number",
|
||||||
|
"system": false,
|
||||||
|
"required": false,
|
||||||
|
"unique": false,
|
||||||
|
"options": {
|
||||||
|
"min": null,
|
||||||
|
"max": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"listRule": "",
|
||||||
|
"viewRule": "",
|
||||||
|
"createRule": "",
|
||||||
|
"updateRule": "",
|
||||||
|
"deleteRule": "",
|
||||||
|
"options": {}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue