{"id":17248760,"url":"https://github.com/nomisrev/openapi-kt","last_synced_at":"2025-07-17T04:40:07.110Z","repository":{"id":243555719,"uuid":"784923336","full_name":"nomisRev/OpenAPI-kt","owner":"nomisRev","description":"Kotlin Multiplatform Typed OpenAPI Document Parser (KotlinX) with Typed Secondary Custom ADT for inspection, typed transformations, code generation, etc.","archived":false,"fork":false,"pushed_at":"2025-05-07T09:20:43.000Z","size":1150,"stargazers_count":13,"open_issues_count":23,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-05-07T10:28:20.597Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nomisRev.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-04-10T20:43:21.000Z","updated_at":"2025-05-07T09:20:46.000Z","dependencies_parsed_at":"2024-06-11T22:01:02.203Z","dependency_job_id":"12e5edbd-b3fe-423a-8d10-4d43d86b0ee0","html_url":"https://github.com/nomisRev/OpenAPI-kt","commit_stats":null,"previous_names":["nomisrev/openapi-kt"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/nomisRev/OpenAPI-kt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomisRev%2FOpenAPI-kt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomisRev%2FOpenAPI-kt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomisRev%2FOpenAPI-kt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomisRev%2FOpenAPI-kt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nomisRev","download_url":"https://codeload.github.com/nomisRev/OpenAPI-kt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomisRev%2FOpenAPI-kt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265565419,"owners_count":23789048,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T06:42:05.099Z","updated_at":"2025-07-17T04:40:07.053Z","avatar_url":"https://github.com/nomisRev.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Module OpenAPI-kt\n\n[![Maven Central](https://img.shields.io/maven-central/v/io.github.nomisrev/openapi-kt-parser?color=4caf50\u0026label=latest%20release)](https://central.sonatype.com/search?q=g:io.github.nomisrev/openapi-kt-parser)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)\n\n**WORK IN PROGRESS**\n\nOpenKTTP is a toolset for working with OpenAPI in Kotlin.\nThis project exists out of several pieces, and they can be combined in different ways to achieve different goals.\n\n- Core: A OpenAPI parser, and typed ADT based on KotlinX Serialization\n- OpenAPI Typed: A version of the `Core` ADT, structures the data in a convenient way to retrieve.\n- Generator: A code generator that generates code from the `OpenAPI Typed` ADT\n- Gradle Plugin: Gradle plugin to conveniently generate clients\n\n## Code Generation\n\nAdd the following to your `build.gradle.kts` file.\n\n```kotlin\nplugin {\n  id(\"io.github.nomisrev.openapi-kt-plugin\") version \"0.0.4\"\n}\n\nopenApiConfig {\n  spec(\"OpenAI\", file(\"openai.yaml\")) {\n    // packageName = \"my.company.openai.generated\"\n  }\n}\n```\n\nThen run the following command to generate the code,\nbut it will also automatically run when you build your project.\n\n```shell\n./gradlew generateOpenApi\n```\n\nThis will generate a `io.github.nomisrev.openapi` package with the generated code,\nin your `/build/generated` directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnomisrev%2Fopenapi-kt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnomisrev%2Fopenapi-kt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnomisrev%2Fopenapi-kt/lists"}