DevToys-app / DevToys

A Swiss Army knife for developers.
https://devtoys.app/
MIT License
26.94k stars 1.45k forks source link

Request: JSON to JSON Schema #764

Open favna opened 1 year ago

favna commented 1 year ago

What's the Problem?

It would be nice if DevToys could offer the function of a JSON to JSON Schema converter such as https://www.liquid-technologies.com/online-json-to-schema-converter.

Solution/Idea

A new converter utility that converts JSON to JSON Schema.

Alternatives

Always having to use websites, the very thing DevToys was designed to have us not do.

Priorities

Capability Priority
There should be an option under "Converters" titled "JSON > JSON Schema" Must
There should not be a converter for JSON Schema > JSON as the actual data is lost. The conversion is strictly one-way. Won't

DevToys Version

Version 1.0.10.0 | X64 | RELEASE | b949a18 | b949a18

Comments

No response

BroMarduk commented 1 year ago

Having a JSON Schema Validator would also be useful. This is also included in the online tool referenced above or another example is https://www.jsonschemavalidator.net/

Inputs: JSON Data, JSON Schema Output: Validation Message or errors where the schema could not be validated.

There are multiple meta-schemas of JSON Schema (https://json-schema.org/specification-links.html) to validate against - the most common are:

Draft v3 Draft v4 Draft v6 Draft v7 Draft 2019-09 Draft 2020-12

PavelGolodoniuc commented 1 year ago

I strongly support both requests – JSON schema generation and validation of JSON against an existing schema.

wapenshaw commented 8 months ago

Having a JSON Schema Validator would also be useful. This is also included in the online tool referenced above or another example is https://www.jsonschemavalidator.net/

Inputs: JSON Data, JSON Schema Output: Validation Message or errors where the schema could not be validated.

This would really be very helpful; I am surprised this wasn't there when I needed it when xml validator exists 😄. Glad to see this is under consideration. Hopefully included soon 🤞