mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-21 11:35:41 -04:00
(ts) reference tsconfig.json in schema generator so it picks up the ~ import alias
it didn’t generate a schema for Category, so it passed even on wrong configuration
This commit is contained in:
parent
6e636f4288
commit
8f6c1cb04f
@ -11,6 +11,7 @@ const __dirname = new URL('.', import.meta.url).pathname;
|
||||
const generateConfigJsonSchema = async () => {
|
||||
const schema = createGenerator({
|
||||
path: `${__dirname}/config.ts`,
|
||||
tsconfig: `${__dirname}/../tsconfig.json`,
|
||||
strictTuples: true,
|
||||
markdownDescription: true,
|
||||
// speed up schema generation; type checking happens separately
|
||||
|
@ -154,17 +154,36 @@ terminology:
|
||||
enabled: true
|
||||
published: true
|
||||
categories:
|
||||
- 'Orientamento sessuale'
|
||||
- 'Orientamento romantico'
|
||||
- 'Orientamento terziario'
|
||||
- 'Genere'
|
||||
- 'Espressione di genere'
|
||||
- 'Modello di relazione'
|
||||
- 'Lingua'
|
||||
- 'Attrazione'
|
||||
- 'Politica'
|
||||
- 'Pregiudizio'
|
||||
|
||||
-
|
||||
key: 'sexual orientation'
|
||||
text: 'Orientamento sessuale'
|
||||
-
|
||||
key: 'romantic orientation'
|
||||
text: 'Orientamento romantico'
|
||||
-
|
||||
key: 'tertiary orientation'
|
||||
text: 'Orientamento terziario'
|
||||
-
|
||||
key: 'gender'
|
||||
text: 'Genere'
|
||||
-
|
||||
key: 'gender expression'
|
||||
text: 'Espressione di genere'
|
||||
-
|
||||
key: 'relationship model'
|
||||
text: 'Modello di relazione'
|
||||
-
|
||||
key: 'language'
|
||||
text: 'Lingua'
|
||||
-
|
||||
key: 'attraction'
|
||||
text: 'Attrazione'
|
||||
-
|
||||
key: 'politics'
|
||||
text: 'Politica'
|
||||
-
|
||||
key: 'prejudice'
|
||||
text: 'Pregiudizio'
|
||||
route: 'Terminologia'
|
||||
|
||||
names:
|
||||
|
@ -158,7 +158,9 @@ terminology:
|
||||
-
|
||||
key: 'politică'
|
||||
text: 'politică'
|
||||
- 'prejudiciu'
|
||||
-
|
||||
key: 'prejudiciu'
|
||||
text: 'prejudiciu'
|
||||
|
||||
route: 'terminologie'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user