openapi-core

openapi4j core utils & JSON reference resolver

License

License

GroupId

GroupId

org.openapi4j
ArtifactId

ArtifactId

openapi-core
Last Version

Last Version

1.0.7
Release Date

Release Date

Type

Type

jar
Description

Description

openapi-core
openapi4j core utils & JSON reference resolver
Project URL

Project URL

https://github.com/openapi4j/openapi4j
Source Code Management

Source Code Management

https://github.com/openapi4j/openapi4j

Download openapi-core

How to add to project

<!-- https://jarcasting.com/artifacts/org.openapi4j/openapi-core/ -->
<dependency>
    <groupId>org.openapi4j</groupId>
    <artifactId>openapi-core</artifactId>
    <version>1.0.7</version>
</dependency>
// https://jarcasting.com/artifacts/org.openapi4j/openapi-core/
implementation 'org.openapi4j:openapi-core:1.0.7'
// https://jarcasting.com/artifacts/org.openapi4j/openapi-core/
implementation ("org.openapi4j:openapi-core:1.0.7")
'org.openapi4j:openapi-core:jar:1.0.7'
<dependency org="org.openapi4j" name="openapi-core" rev="1.0.7">
  <artifact name="openapi-core" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.openapi4j', module='openapi-core', version='1.0.7')
)
libraryDependencies += "org.openapi4j" % "openapi-core" % "1.0.7"
[org.openapi4j/openapi-core "1.0.7"]

Dependencies

compile (2)

Group / Artifact Type Version
com.fasterxml.jackson.core : jackson-databind jar 2.12.1
com.fasterxml.jackson.dataformat : jackson-dataformat-yaml jar 2.12.1

Project Modules

There are no modules declared in this project.

Build Status Maintainability Rating Security Rating Coverage

OpenAPI for java project home

This is the home page of the openapi4j project for Java (Jakarta or JVM platform in general).

openapi4j is a suite of tools, including the following :

  • Open API specification parser and validator.
  • Open API Schema Object validator.
  • JSON reference implementation.
  • Request/response validator against operation.
  • For internal use only, performance project reports some numbers to 'manually' check any improvements or regressions between versions.

Modules

  • Parser allows the (de-)serialization and manipulation of the schema and its validation.
  • Schema validator allows the validation of data against a given schema.
  • Request validator is high level module to manage validation for requests and/or responses against operations. More details in the related project.
  • Request adapters is the repository of specific adapters to wrap requests and responses.

Documentation

The documentation for all modules is available here.

Versioning and compatibility

All modules follow the Semantic Versioning 2.0.0 and are aligned on each release even there's no changes.

<dependency>
    <groupId>org.openapi4j</groupId>
    <artifactId>openapi-[module]</artifactId>
</dependency>

Release version Snapshot version

Snapshot is available for latest valid commit on 'master' branch.

Performance

Check here for some values.

Native compilation (GraalVM)

From version 0.7, the toolset is fully compliant with native compilation (AOT). This was tested with GraalVM 19.3.1. No further configuration or directive is needed to include the modules if available on classpath.

native-image -H:+ReportExceptionStackTraces --no-fallback -jar your-app.jar

FYI, testing runs made don't show much performance improvements but parser module.

Supported versions

The modules currently support the OpenAPI Specification (OAS) version 3.0.x.

OAI 3.1.0 has been released as candidate.
There's too much changes too keep code on same basis and keep a fairly low level of complexity.
As a consequence, OAI 3.1.x support will be made in a version 2 of openapi4j.

As my time is very limited, version 1 should be considered as freezed for now.

See related projects for limitations and issues.

Contributing

Reporting issues, making comments, ... Any help is welcome !

We accept Pull Requests via GitHub. There are some guidelines which will make applying PRs easier for us :

  • Respect the code style and indentation. .editorconfig file is provided to not be worried about this.
  • Create minimal diffs - disable on save actions like reformat source code or organize imports. If you feel the source code should be reformatted create a separate PR for this change.
  • Provide JUnit tests for your changes and make sure your changes don't break anything by running gradlew clean check.
  • Provide a self explanatory but brief commit message with issue reference if any, as it will be reported directly for release changelog.

License

openapi4j and all the modules are released under the Apache 2.0 license. See LICENSE for details.

org.openapi4j

openapi4j

Versions

Version
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1