Skip to content

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 3, 2025

Bumps io.openapiprocessor:json-schema-validator-bom from 2024.5 to 2025.1.

Release notes

Sourced from io.openapiprocessor:json-schema-validator-bom's releases.

2025.1

openapi-parser 3.0/3.1

bundling

OpenApiResult has a new bundle() method to bundle a multi-file OpenAPI document.

/**  * Bundle the document, i.e. merge a multi-file document into a single file document. The bundled document has to  * be parsed to navigate its OpenAPI model.  *  * @return a raw bundled copy of the OpenAPI document.  */ @Experimental Map<String, Object> bundle();

It can be used like this:

// kotlin import io.openapiparser.model.v31.OpenApi import io.openapiprocessor.jsonschema.reader.UriReader import io.openapiprocessor.jsonschema.schema.DocumentLoader import io.openapiprocessor.jsonschema.schema.DocumentStore import io.openapiprocessor.snakeyaml.SnakeYamlConverter import java.net.URI "bundle example" { val loader = DocumentLoader(UriReader(), SnakeYamlConverter()) // parse a multi file OpeAPI document (from resources) val originalDocs = DocumentStore() val originalParser = OpenApiParser(originalDocs, loader) val originalResult = originalParser.parse(&quot;/original/openapi.yaml&quot;) // bundle the OpenAPI, i.e. move $ref content to &quot;components.schemas&quot; and friends if the // ref points to a different file. The original document is not touched. val bundled = originalResult.bundle() // parse the bundled document (this creates a reference map for ref lookups) to navigate // its OpenAPI model. val bundledDocs = DocumentStore() val bundledParser = OpenApiParser(bundledDocs, loader) val bundledResult = bundledParser.parse(URI.create(&quot;/original/openapi.yaml&quot;), bundled) val api = bundledResult.getModel(OpenApi::class.java) val summary = api.info.summary </tr></table>

... (truncated)

Commits

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 [io.openapiprocessor:json-schema-validator-bom](https://github.com/openapi-processor/openapi-parser) from 2024.5 to 2025.1. - [Release notes](https://github.com/openapi-processor/openapi-parser/releases) - [Commits](openapi-processor/openapi-parser@v2024.5...v2025.1) --- updated-dependencies: - dependency-name: io.openapiprocessor:json-schema-validator-bom dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Dependencies update to newer versions label Feb 3, 2025
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'KMP JSON schema validator'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.50.

Benchmark suite Current: 0bf9ed3 Previous: f6e5a67 Ratio
macosArm64.CommonAvgTimeBench.validateVerbose ( {"objectPath":"openapi-invalid.json","schemaPath":"openapi_schema.json"} ) 8333.668694782607 us/op 5428.125089304813 us/op 1.54

This comment was automatically generated by workflow using github-action-benchmark.

CC: @OptimumCode

@OptimumCode OptimumCode enabled auto-merge (squash) February 3, 2025 12:32
@OptimumCode OptimumCode merged commit 48fa0b4 into main Feb 3, 2025
20 checks passed
@OptimumCode OptimumCode deleted the dependabot/gradle/io.openapiprocessor-json-schema-validator-bom-2025.1 branch February 3, 2025 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Dependencies update to newer versions

1 participant