Skip to content

Commit

Permalink
draft of zod model
Browse files Browse the repository at this point in the history
  • Loading branch information
olih committed Jan 7, 2025
1 parent 3a1fb3a commit 783e565
Show file tree
Hide file tree
Showing 3 changed files with 3,361 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"dependencies": {
"faora-kai": "^0.1.0",
"jose": "^4.14.4",
"zod": "^3.21.4"
"zod": "^3.24.1"
},
"devDependencies": {
"@types/node": "^20.2.5",
Expand All @@ -56,4 +56,4 @@
"xo": "^0.54.2"
},
"peerDependencies": {}
}
}
15 changes: 15 additions & 0 deletions src/incy-wincy-model.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import {describeEnum} from 'faora-kai';
import {z} from 'zod';

const programmingLanguageKey = ['js', 'ts', 'dart', 'python'] as const;

const programmingLanguageLabels = {
js: 'Javascript',
ts: 'Typescript',
dart: 'Dart',
python: 'Python',
};

const programmingLanguage = z

Check failure on line 13 in src/incy-wincy-model.ts

View workflow job for this annotation

GitHub Actions / Build, lint, and test on Node 18.x and macOS-latest

'programmingLanguage' is declared but its value is never read.

Check failure on line 13 in src/incy-wincy-model.ts

View workflow job for this annotation

GitHub Actions / Build, lint, and test on Node 18.x and ubuntu-latest

'programmingLanguage' is declared but its value is never read.
.enum(programmingLanguageKey)
.describe(describeEnum('Encryption strength:', programmingLanguageLabels));
Loading

0 comments on commit 783e565

Please sign in to comment.