{"id":20665872,"url":"https://github.com/catap/sbt-jsonschema2pojo","last_synced_at":"2025-07-28T00:08:53.888Z","repository":{"id":27570142,"uuid":"31052490","full_name":"catap/sbt-jsonschema2pojo","owner":"catap","description":"sbt plugin for generating PoJo from Json Schema","archived":false,"fork":false,"pushed_at":"2015-02-25T12:40:49.000Z","size":152,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T12:55:05.853Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/catap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-20T05:35:03.000Z","updated_at":"2015-02-25T12:40:50.000Z","dependencies_parsed_at":"2022-09-02T15:42:31.641Z","dependency_job_id":null,"html_url":"https://github.com/catap/sbt-jsonschema2pojo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/catap/sbt-jsonschema2pojo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catap%2Fsbt-jsonschema2pojo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catap%2Fsbt-jsonschema2pojo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catap%2Fsbt-jsonschema2pojo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catap%2Fsbt-jsonschema2pojo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/catap","download_url":"https://codeload.github.com/catap/sbt-jsonschema2pojo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catap%2Fsbt-jsonschema2pojo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267442458,"owners_count":24087803,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-16T19:34:22.257Z","updated_at":"2025-07-28T00:08:53.854Z","avatar_url":"https://github.com/catap.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sbt-jsonschema2pojo\nsbt plugin for generating PoJo from Json Schema.\n\n## Setup\n\nCreate at your sbt project file `project/jsonschema2pojo.sbt` with following contents:\n\n```scala\nresolvers += Resolver.url(\"sbt-jsonschema2pojo-plugin-releases\",\n   url(\"http://dl.bintray.com/catap/sbt-plugins/\"))(Resolver.ivyStylePatterns)\n       \naddSbtPlugin(\"com.github.catap\" % \"sbt-jsonschema2pojo\" % \"0.3\")\n```\n\nGenerated PoJo required [commons-lang](http://commons.apache.org/proper/commons-lang/) and [jackson-databind](https://github.com/FasterXML/jackson-databind/).\n\nFor example you can add it to yuor project by adding following lines to `build.sbt`: \n\n```scala\nlibraryDependencies += \"commons-lang\" % \"commons-lang\" % \"2.6\"\n\nlibraryDependencies += \"com.fasterxml.jackson.core\" % \"jackson-databind\" % \"2.5.1\"\n```\n\nNow yout json schemas to `src/main/resources/json-schemas` and after you can found generated PoJo classes at PoJo package.\n\n## Customization\n\n### Json Schemas path\n\nYou can change list of json schemas files. By default plugin use all files that ended by `.json` on `src/main/resources/json-schemas`.\nIf you would like to use all files that ended by `.schema.json` from `shemas` folder, you must add a following code to your `build.sbt`:\n\n```scala\njsonSchemas in jsonSchema2PoJo := (baseDirectory.value / \"schemas\").listFiles(new FilenameFilter {\n  override def accept(dir: File, name: String): Boolean = name.endsWith(\".schema.json\")\n})\n```\n\n### PoJo package\n\nAll generated files that include to `PoJo` package. You can specialized it by following command:\n\n```scala\ntargetPackage in jsonSchema2PoJo := \"com.company.PoJo\"\n```\n\n### All options\n\nThis plugin support following options. For detail information about options please looking at [JsonSchema2PoJo documentation](https://github.com/joelittlejohn/jsonschema2pojo).\n```\ngenerateBuilders\nusePrimitives\nschemas\ntargetDirectory\ntargetPackage\npropertyWordDelimiters\nuseLongIntegers\nuseDoubleNumbers\nincludeHashcodeAndEquals\nincludeToString\nannotationStyle\ncustomAnnotator\ncustomRuleFactory\nincludeJsr303Annotations\nsourceType\noutputEncoding\nremoveOldOutput\nuseJodaDates\nuseCommonsLang3\nfileFilter\ninitializeCollections\nclassNamePrefix\nclassNameSuffix\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatap%2Fsbt-jsonschema2pojo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcatap%2Fsbt-jsonschema2pojo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatap%2Fsbt-jsonschema2pojo/lists"}