Skip to content

Commit a9ddd20

Browse files
committed
Re-generate schemas.
1 parent 071fbde commit a9ddd20

File tree

5 files changed

+113
-119
lines changed

5 files changed

+113
-119
lines changed

docs/assets/api/schemas.json

Lines changed: 9 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,28 +1008,9 @@
10081008
"type": "string"
10091009
},
10101010
"type": {
1011-
"allOf": [
1012-
{
1013-
"anyOf": [
1014-
{
1015-
"const": "static",
1016-
"type": "string"
1017-
},
1018-
{
1019-
"const": "random_permutation",
1020-
"type": "string"
1021-
},
1022-
{
1023-
"const": "balanced_assignment",
1024-
"type": "string"
1025-
}
1026-
]
1027-
},
1028-
{
1029-
"const": "static",
1030-
"type": "string"
1031-
}
1032-
]
1011+
"default": "static",
1012+
"const": "static",
1013+
"type": "string"
10331014
},
10341015
"scope": {
10351016
"anyOf": [
@@ -1258,28 +1239,9 @@
12581239
"type": "string"
12591240
},
12601241
"type": {
1261-
"allOf": [
1262-
{
1263-
"anyOf": [
1264-
{
1265-
"const": "static",
1266-
"type": "string"
1267-
},
1268-
{
1269-
"const": "random_permutation",
1270-
"type": "string"
1271-
},
1272-
{
1273-
"const": "balanced_assignment",
1274-
"type": "string"
1275-
}
1276-
]
1277-
},
1278-
{
1279-
"const": "random_permutation",
1280-
"type": "string"
1281-
}
1282-
]
1242+
"default": "random_permutation",
1243+
"const": "random_permutation",
1244+
"type": "string"
12831245
},
12841246
"scope": {
12851247
"anyOf": [
@@ -1366,28 +1328,9 @@
13661328
"type": "string"
13671329
},
13681330
"type": {
1369-
"allOf": [
1370-
{
1371-
"anyOf": [
1372-
{
1373-
"const": "static",
1374-
"type": "string"
1375-
},
1376-
{
1377-
"const": "random_permutation",
1378-
"type": "string"
1379-
},
1380-
{
1381-
"const": "balanced_assignment",
1382-
"type": "string"
1383-
}
1384-
]
1385-
},
1386-
{
1387-
"const": "balanced_assignment",
1388-
"type": "string"
1389-
}
1390-
]
1331+
"default": "balanced_assignment",
1332+
"const": "balanced_assignment",
1333+
"type": "string"
13911334
},
13921335
"scope": {
13931336
"anyOf": [

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"scripts": {
2828
"prepare": "husky",
29-
"update-schemas": "npm run build --workspace=utils && npx tsx utils/src/export-schemas.ts && npx prettier --write docs/assets/api/schemas.json && cd scripts && uv run datamodel-codegen --input ../docs/assets/api/schemas.json --output deliberate_lab/types.py --input-file-type jsonschema --reuse-model --collapse-root-models --use-union-operator --use-title-as-name --output-model-type pydantic_v2.BaseModel --custom-file-header '# pyright: reportInvalidTypeForm=false\n# pylint: disable=missing-module-docstring,missing-class-docstring,invalid-name,too-few-public-methods' && uv run black deliberate_lab/ && uv run pyright deliberate_lab/"
29+
"update-schemas": "npm run build --workspace=utils && npx tsx utils/src/export-schemas.ts && npx prettier --write docs/assets/api/schemas.json && cd scripts && uv run datamodel-codegen --input ../docs/assets/api/schemas.json --output deliberate_lab/types.py --input-file-type jsonschema --reuse-model --collapse-root-models --use-union-operator --use-title-as-name --use-one-literal-as-default --output-model-type pydantic_v2.BaseModel --custom-file-header '# pyright: reportInvalidTypeForm=false\n# pylint: disable=missing-module-docstring,missing-class-docstring,invalid-name,too-few-public-methods' && uv run black deliberate_lab/ && uv run pyright deliberate_lab/"
3030
},
3131
"workspaces": [
3232
"frontend",

0 commit comments

Comments
 (0)