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

Eirby/client side schema validation #337

Merged
merged 4 commits into from
Aug 30, 2023

Conversation

EdwardIrby
Copy link
Contributor

  • Adds schema validation into editor
  • Fixes tabbing bug that was blocking dev on this
  • needs styling adjustment on tab container to show top tool tip.

@EdwardIrby
Copy link
Contributor Author

Screen.Recording.2023-08-29.at.5.42.10.PM.mov

@EdwardIrby
Copy link
Contributor Author

Screen.Recording.2023-08-29.at.5.54.24.PM.mov

@EdwardIrby EdwardIrby force-pushed the eirby/client-side-schema-validation branch from 580dbaf to eea57e8 Compare August 30, 2023 00:58
@alecthomas
Copy link
Collaborator

The schema validation is so cool, thanks @EdwardIrby .

if (modules.length) {
const ids = id.split('.')
// Handle edge case where the id contains and invalid module or verb
if (modules.length) {
Copy link
Collaborator

@alecthomas alecthomas Aug 30, 2023

Choose a reason for hiding this comment

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

There should be a check for ids.length == 2 somewhere here I think? Otherwise if it's 1 or >2 the array destructuring below will fail, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

@wesbillman wesbillman left a comment

Choose a reason for hiding this comment

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

LGTM. 1 minor comment/question here.

Comment on lines +85 to +87
schemas: [
{schema, uri: 'http://myserver/foo-schema.json', fileMatch: ['*']},
],
Copy link
Member

Choose a reason for hiding this comment

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

Is there a valid uri we can use here? Or does this uri not really matter here?

@EdwardIrby EdwardIrby merged commit c254635 into main Aug 30, 2023
8 checks passed
@EdwardIrby EdwardIrby deleted the eirby/client-side-schema-validation branch August 30, 2023 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants