Skip to content
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

Merged
merged 2 commits into from
Nov 25, 2021
Merged

feat: add Store schema #28

merged 2 commits into from
Nov 25, 2021

Conversation

cazala
Copy link
Member

@cazala cazala commented Nov 25, 2021

Added Store schema

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",
Copy link
Contributor

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
Copy link
Contributor

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

Copy link
Contributor

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 😂

Copy link
Member Author

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 😅

Copy link
Contributor

@fzavalia fzavalia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cazala cazala merged commit 9ab7a5a into main Nov 25, 2021
@cazala cazala deleted the feat/marketplace-store branch November 25, 2021 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants