question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Schema validation package

See original GitHub issue

A schema validation for Theme UI objects could help with other packages and libraries built on top of the core. Leveraging a library like yup or joi, this validator should be able to detect whether a theme object is valid and detect typos among other things

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:18 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
alex-pagecommented, Jun 26, 2019

Would love to contribute. I made an issue https://github.com/system-ui/theme-ui/issues/128, I have a rough work in progress here however it requires a lot more to be done. https://github.com/alex-page/lollipop

1reaction
jxnblkcommented, Jun 26, 2019

I have been building something that generates css variables from the schema

@alex-page I think this would be a great addition to theme-ui as a stand-alone package. I imagine the schema package would be something that could be leveraged for this, but it probably warrants its own issue if you’re keen to contribute

Read more comments on GitHub >

github_iconTop Results From Across the Web

jsonschema - npm
JSON schema validator, which is designed to be fast and simple to use. JSON Schema versions through draft-07 are fully supported. Contributing & ......
Read more >
Schema Validator - Package Control
This plugin validates your JSON file using the schema pointed to by the $schema attribute. If no $schema attribute exists, it will try...
Read more >
Ajv JSON schema validator - GitHub
Ajv generates code to turn JSON Schemas into super-fast validation functions that are efficient for v8 optimization. Currently Ajv is the fastest and...
Read more >
Ajv JSON schema validator
It allows implementing complex data validation logic via declarative schemas for your JSON data, without writing code. Out of the box, Ajv supports...
Read more >
Schema validator - npm.io
Schema validator Packages ; amanda. JSON Schema validator. JSON ; lx-valid. A cross-browser / node.js validator, based on flatiron revalidator. json schema ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found