Skip to content

Commit 918f044

Browse files
committed
Fix config typing
This time for real!
1 parent 9d03205 commit 918f044

File tree

4 files changed

+2
-21
lines changed

4 files changed

+2
-21
lines changed

Tekst-API/openapi.json

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8980,10 +8980,6 @@
89808980
"searchableAdv": true,
89818981
"rtl": false
89828982
}
8983-
},
8984-
"special": {
8985-
"type": "null",
8986-
"title": "Special"
89878983
}
89888984
},
89898985
"type": "object",
@@ -10923,10 +10919,6 @@
1092310919
"searchableAdv": false,
1092410920
"rtl": false
1092510921
}
10926-
},
10927-
"special": {
10928-
"type": "null",
10929-
"title": "Special"
1093010922
}
1093110923
},
1093210924
"type": "object",
@@ -12063,10 +12055,6 @@
1206312055
"searchableAdv": true,
1206412056
"rtl": false
1206512057
}
12066-
},
12067-
"special": {
12068-
"type": "null",
12069-
"title": "Special"
1207012058
}
1207112059
},
1207212060
"type": "object",

Tekst-API/tekst/models/resource_configs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ class GeneralResourceConfig(ModelBase):
9090

9191
class ResourceConfigBase(ModelBase):
9292
general: GeneralResourceConfig = GeneralResourceConfig()
93-
special: None = None
9493

9594

9695
# GENERIC RESOURCE CONFIG: ITEM DISPLAY (ORDER, GROUPING AND TRANSLATIONS)

Tekst-Web/src/api/schema.d.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1971,8 +1971,6 @@ export interface components {
19711971
* }
19721972
*/
19731973
general: components['schemas']['GeneralResourceConfig'];
1974-
/** Special */
1975-
special?: null;
19761974
};
19771975
/** AudioResourceCreate */
19781976
AudioResourceCreate: {
@@ -2873,8 +2871,6 @@ export interface components {
28732871
* }
28742872
*/
28752873
general: components['schemas']['GeneralResourceConfig'];
2876-
/** Special */
2877-
special?: null;
28782874
};
28792875
/** ExternalReferencesResourceCreate */
28802876
ExternalReferencesResourceCreate: {
@@ -3403,8 +3399,6 @@ export interface components {
34033399
* }
34043400
*/
34053401
general: components['schemas']['GeneralResourceConfig'];
3406-
/** Special */
3407-
special?: null;
34083402
};
34093403
/** ImagesResourceCreate */
34103404
ImagesResourceCreate: {

Tekst-Web/src/forms/resources/config/SpecialResourceConfigFormItems.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<script setup lang="ts">
2-
import type { AnyResourceConfig, AnyResourceRead } from '@/api';
2+
import type { AnyResourceRead } from '@/api';
33
import { specialConfigFormItems } from '@/forms/resources/config/mappings';
44
55
defineProps<{
66
resource: AnyResourceRead;
77
}>();
88
9-
const model = defineModel<AnyResourceConfig['special']>({ required: true });
9+
const model = defineModel<Record<string, unknown>>({ required: true });
1010
</script>
1111

1212
<template>

0 commit comments

Comments
 (0)