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

Features/embeded json schema #214

Merged
merged 3 commits into from
Mar 10, 2021
Merged

Conversation

joshuaskelly
Copy link
Collaborator

Summary

Adding the "$schema" property to our JSON schema so it's way easier for text editors can do the right thing. I'd love to have this feature for the next tutorial video, so I'm making it true. 😝

Copy link
Contributor

@PythooonUser PythooonUser left a comment

Choose a reason for hiding this comment

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

Looks good. I think I'm missing IDE config files, though. Might be worth adding to the repo?

@@ -1,4 +1,5 @@
{
"$schema": "http://delverengine.com/jsonschema/current/filetypes/animations.dat",
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm getting the following IDE error: Property $schema is not allowed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Correct. Because the current deployed versions of the schemas do not allow the property. 😄
This will be resolved after merge and updating the live schema.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, my bad. Okay then!

@joshuaskelly
Copy link
Collaborator Author

The point of adding $schema property is to remove the need for ide specific config artifacts. JSON editors that understand schemas will automatically do the right thing when they see that property.

@joshuaskelly joshuaskelly merged commit ff5c7c6 into master Mar 10, 2021
@joshuaskelly joshuaskelly deleted the features/embeded-json-schema branch March 10, 2021 20:44
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