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

Add or Modify json-schema gem in JSON Schema Ecosystem #1421

Open
7 of 33 tasks
mfdj opened this issue Feb 22, 2025 · 7 comments
Open
7 of 33 tasks

Add or Modify json-schema gem in JSON Schema Ecosystem #1421

mfdj opened this issue Feb 22, 2025 · 7 comments
Labels
dependencies Pull requests that update a dependency file Status: Triage This is the initial status for an issue that requires triage.

Comments

@mfdj
Copy link

mfdj commented Feb 22, 2025

Tool Name

json-schema

Tool Description

I was perusing https://json-schema.org/tools and noticed that the json-schema Ruby gem was not included.

I've used this gem but am not affiliated with the project — just trying to pitch in.

Action Type

  • Add Tool
  • Modify Tool

Tooling Types

  • validator
  • hyper-schema
  • benchmarks
  • documentation
  • LDO-utility
  • code-to-schema
  • data-to-schema
  • model-to-schema
  • schema-to-types
  • schema-to-code
  • schema-to-web-UI
  • schema-to-data
  • util-general-processing
  • util-schema-to-schema
  • util-draft-migration
  • util-format-conversion
  • util-testing
  • editor
  • editor-plugins
  • schema-repository
  • linter
  • linter-plugins

Languages

Ruby

Environments

No response

Dependencies on Validators

No response

Creators

No response

Maintainers

Vox Pupuli

License

MIT

Source Repository URL

https://github.com/voxpupuli/json-schema/

Homepage URL

https://github.com/voxpupuli/json-schema/

Supported Dialects

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 2019-09
  • 2020-12

Additional Dialects

No response

Bowtie Compliance Testing

No response

Tooling Listing Notes

No response

Compliance

No response

Landscape Information

No response

@mfdj mfdj added the Status: Triage This is the initial status for an issue that requires triage. label Feb 22, 2025
@github-actions github-actions bot added the dependencies Pull requests that update a dependency file label Feb 22, 2025
Copy link

Welcome to the JSON Schema Community. We are so excited you are here! Thanks a lot for reporting your first issue!! 🎉🎉 Please make sure to take a look at our contributors guide if you plan on opening a pull request.
For more details, check out the README.md file.

@gregsdennis
Copy link
Member

Thanks for the info! We'll have a look.

@jagpreetrahi
Copy link

Hey @gregsdennis @benjagm . I hope you doing well , I'd love to work on this issue , can u give me chance to work upon it , if it is possible

@karenetheridge
Copy link
Member

I don't see draft 5 support mentioned at https://github.com/voxpupuli/json-schema/.

@jagpreetrahi
Copy link

Yes , I have seen that by provide url , and I seen some validation guide provided by them as

"By default, the validator uses the JSON Schema Draft 4 specification for validation; however, the user is free to specify additional specifications or extend existing ones. Legacy support for Draft 1, Draft 2, and Draft 3 is included by either passing an optional :version parameter to the validate method (set either as :draft1 or draft2), or by declaring the $schema attribute in the schema and referencing the appropriate specification URI."

@gregsdennis
Copy link
Member

gregsdennis commented Feb 23, 2025

The readme states

This library is intended to provide Ruby with an interface for validating JSON objects against a JSON schema conforming to JSON Schema Draft 6. Legacy support for JSON Schema Draft 4, JSON Schema Draft 3, JSON Schema Draft 2, and JSON Schema Draft 1 is also included.

So no draft 5, but I'd say draft 6 is the default.

It's also interesting that only up to draft 6 is supported. Even though it has been updated within the past few months, the recent updates seem to be more related to package management and compatibility than to extend support for JSON Schema. I question whether this is still in significant development. I'd think later versions that draft 6 would be supported if it was still in development.

I think this should go into the legacy support section of the tools page.


Turns out it is already listed:

Image

Looks like the repo was transferred.

We just need to:

  • update the URL from https://github.com/hoxworth/json-schema to https://github.com/voxpupuli/json-schema
  • add draft 6

@jdesrosiers
Copy link
Member

I don't see draft 5 support mentioned at https://github.com/voxpupuli/json-schema/.

Draft-05 isn't a distinct dialect. It's a spec patch update of the draft-04 dialect. Implementations shouldn't be declaring that they support draft-05. The draft-05 spec is for the draft-04 dialect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file Status: Triage This is the initial status for an issue that requires triage.
Projects
None yet
Development

No branches or pull requests

5 participants