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 v1 node types constraints #279

Merged
merged 2 commits into from
Oct 25, 2021
Merged

Conversation

cezarsmpio
Copy link
Contributor

No description provided.

/**
* Node types before `tables` implementation
*/
export const V1_NODE_TYPES = [
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Question: should we add this as a schema constraint or node type? I thought this would be more suitable here by looking at the code.

Copy link
Contributor

Choose a reason for hiding this comment

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

This is probably the most appropriate place for it even though it's not properly speaking a "schema" constraint. If anything I would push for the file name to be genericized to something like constraints.ts (not important for this PR).

@cezarsmpio cezarsmpio requested review from a team and removed request for cribbles October 22, 2021 15:43
cribbles
cribbles previously approved these changes Oct 22, 2021
Copy link
Contributor

@cribbles cribbles left a comment

Choose a reason for hiding this comment

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

Left a nit comment, but it's non-blocking, 👍

/**
* Node types before `tables` implementation
*/
export const V1_NODE_TYPES = [
Copy link
Contributor

Choose a reason for hiding this comment

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

This is probably the most appropriate place for it even though it's not properly speaking a "schema" constraint. If anything I would push for the file name to be genericized to something like constraints.ts (not important for this PR).

@@ -96,3 +97,29 @@ export const CONTAINERS = {
[BLOCKS.TABLE_CELL]: [BLOCKS.PARAGRAPH],
[BLOCKS.TABLE_HEADER_CELL]: [BLOCKS.PARAGRAPH],
};

/**
* Node types before `tables` implementation
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: "implementation" a bit technical, maybe "release"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants