Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Ballerina OpenApi-Tool

License

NotificationsYou must be signed in to change notification settings

ballerina-platform/openapi-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BuildcodecovGitHub Last CommitGitHub issues

Ballerina OpenAPI tools provide seamless integration between Ballerina and OpenAPI specifications, enabling bothcontract-first and code-first API development approaches. Thebal openapi command offers contract optimizationthroughflatten andalign operations to make OpenAPI contracts Ballerina-compatible, bidirectional code generationto create Ballerina services and clients from OpenAPI contracts or export OpenAPI specifications from Ballerinaservices, and build-time integration via theadd command for automated client generation. Additionally,the OpenAPI module provides annotations like@openapi:ServiceInfo,@openapi:ResourceInfo, and@openapi:Exampleto enrich generated contracts with metadata, enable runtime introspection by exposing OpenAPI documentation, validateservice implementations against existing contracts at compile-time, and enhance API documentation with examples anddescriptions.

Building from the Source

Setting Up the Prerequisites

  1. OpenJDK 21 (Adopt OpenJDK or any other OpenJDK distribution)

    Info: You can also useOracle JDK. Set the JAVA_HOME environment variable to the pathname of the directory into which you installed JDK.

  2. Export GitHub Personal access token with read package permissions as follows,

    export packageUser=<Username>export packagePAT=<Personal access token>

Building the Source

Execute the commands below to build from the source.

  1. To build the library:

     ./gradlew clean build
  2. To run the integration tests:

     ./gradlew clean test
  3. To build the module without the tests:

     ./gradlew clean build -x test
  4. To publish to maven local:

     ./gradlew clean build publishToMavenLocal

Contributing to Ballerina

As an open-source project, Ballerina welcomes contributions from the community.

You can also check foropen issues thatinterest you. We look forward to receiving your contributions.

For more information, go to thecontribution guidelines.

Code of Conduct

All contributors are encouraged to read theBallerina Code of Conduct.

Useful Links

About

Ballerina OpenApi-Tool

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors62


[8]ページ先頭

©2009-2025 Movatter.jp