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

Bump com.github.erosb:json-sKema from 0.18.0 to 0.19.0 #235

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 1, 2024

Bumps com.github.erosb:json-sKema from 0.18.0 to 0.19.0.

Release notes

Sourced from com.github.erosb:json-sKema's releases.

YAML support

Intro

This release is bigger than the usual updates of the library. The main direction of the recent developments was to support an OpenAPI library called Kappa, which is a refreshment (permanent fork) of the archived openapi4j project.

With that in mind, the main goal was to support loading of JSON Schema documents written in YAML.

Improvements

  • it is now possible to load schema documents written in YAML, SchemaLoader fully supports loading YAML content
  • prevent infinite recursion and StackOverflowError caused by very deeply nested JSON structures (this treshold is 100_000 nesting levels by default, adjustable in JsonParser constructors)
  • documentSource URI is now mandatory in every JsonValue instance, by default it is mem://input
  • JsonParser now has a constructor which accepts a Reader instance
  • add SchemaClient.createDefaultSchemaClient() which is easy to use by custom implementations to delegate to
  • making internal SchemaClient implementations public
  • added ValidationFailure.flatten() which returns the leaf nodes of the failure hierarchy, as a list

Bugfix

  • fixes indentation issue in ValidationFailure.toString()

Breaking changes

  • the type of SchemaLoaderConfig.initialBaseURI changed from String to URI.
  • the type of DEFAULT_BASE_URI changed from String to URI

YAML support (RC1)

Improvements

With this release-candidate, the library becomes able to parse YAML documents as JSON Schema documents

  • SchemaLoader(String) now accepts YAML content, not only JSON
  • referenced remote schemas can also be YAML documents ($refs can point to yaml files)
Commits
  • 9741c26 bump version number
  • a0ae00b making SchemaClient implementations public, and adding some docs
  • 77db601 fix bug in nesting level counting
  • 37ae35b extract default SchemaClient extraction into static factory method, rename D...
  • 9061adf fixes #120
  • a3b836a fixes #119
  • 2fc9624 update version number
  • 26060fb add ValidationFailure#flatten()
  • c069add make documentSource mandatory; fix indentation problem in ValidationFailure; ...
  • 4884bc1 schemaJson.location now takes precedence over config.initialBaseURI (the latt...
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [com.github.erosb:json-sKema](https://github.com/erosb/json-sKema) from 0.18.0 to 0.19.0.
- [Release notes](https://github.com/erosb/json-sKema/releases)
- [Commits](erosb/json-sKema@v0.18.0...v0.19.0)

---
updated-dependencies:
- dependency-name: com.github.erosb:json-sKema
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot requested a review from a team as a code owner November 1, 2024 05:51
@dependabot dependabot bot added dependencies Pull requests that update a dependency file java Pull requests that update Java code labels Nov 1, 2024
@github-actions github-actions bot enabled auto-merge (squash) November 1, 2024 05:56
@github-actions github-actions bot merged commit 902eff7 into main Nov 1, 2024
10 checks passed
@github-actions github-actions bot deleted the dependabot/gradle/com.github.erosb-json-sKema-0.19.0 branch November 1, 2024 06:01
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 java Pull requests that update Java code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants