-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add Store schema #28
Conversation
76c247b
to
ded3273
Compare
ded3273
to
e059305
Compare
package.json
Outdated
@@ -10,7 +10,7 @@ | |||
"lint": "eslint . --ext .ts", | |||
"lint:fix": "eslint . --ext .ts --fix", | |||
"check-api": "api-extractor run --typescript-compiler-folder ./node_modules/typescript", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe check-api would benefit from running build first such as refresh-api
import { generateValidator, JSONSchema, ValidateFunction } from '../validation' | ||
|
||
export type Store = { | ||
id: string // urn |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not necessary for now, but it would be nice to have urns validated in the schema
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just daydreaming but for example we could even add utilities like store.id[3]
to get that section of the urn if necessary or something like a tree to navigate through different hierarchies. dunno 😂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, tho I dunno how to do that with json schema tbh 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Added
Store
schema