{"id":28284060,"url":"https://github.com/evref-bl/openapi-class-builder","last_synced_at":"2025-08-18T05:34:08.626Z","repository":{"id":291978938,"uuid":"979405598","full_name":"Evref-BL/OpenAPI-Class-Builder","owner":"Evref-BL","description":"A tiny tool to generate Pharo classes from an OpenAPI json schema description ","archived":false,"fork":false,"pushed_at":"2025-05-15T06:55:13.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-17T16:44:56.253Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Smalltalk","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/Evref-BL.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":"2025-05-07T13:12:47.000Z","updated_at":"2025-05-15T06:55:16.000Z","dependencies_parsed_at":"2025-05-07T14:45:02.406Z","dependency_job_id":"ccae6a33-516c-4d88-b669-017c1ab4ad4a","html_url":"https://github.com/Evref-BL/OpenAPI-Class-Builder","commit_stats":null,"previous_names":["evref-bl/openapi-class-builder"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Evref-BL/OpenAPI-Class-Builder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Evref-BL%2FOpenAPI-Class-Builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Evref-BL%2FOpenAPI-Class-Builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Evref-BL%2FOpenAPI-Class-Builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Evref-BL%2FOpenAPI-Class-Builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Evref-BL","download_url":"https://codeload.github.com/Evref-BL/OpenAPI-Class-Builder/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Evref-BL%2FOpenAPI-Class-Builder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270949805,"owners_count":24673911,"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-08-18T02:00:08.743Z","response_time":89,"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":"2025-05-21T17:13:01.100Z","updated_at":"2025-08-18T05:34:08.609Z","avatar_url":"https://github.com/Evref-BL.png","language":"Smalltalk","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UPDATE\nThis project is a POC, only working on Small part of the OpenAPI specification (i.e. example from Github OpenAPI UI browser). Please report to this project instead for the latest implementation [https://github.com/Evref-BL/pharo-openapi-generator](https://github.com/Evref-BL/pharo-openapi-generator) \n\n# Description\n\nThis project is a quick tool to generate Pharo classes from an OpenAPI description schema in Json, **specific to one endpoint only**. \nIn its current form, you need to pass the description format as a FileReference or a String. \n\nNext versions will add a data loader and a retrieval of all endpoint from cURL to the API. \n\n# Installation\n\n```smalltalk\nMetacello new\n  githubUser: 'Evref-BL' project: 'OpenAPI-Class-Builder' commitish: 'main' path: 'src';\n  baseline: 'OpenAPIClassBuilder';\n  load\n```\n\n# Usage\n\n```smalltalk\nOpenApiClassesBuilder newClassNamed: 'CopilotsMetric' compileFromFilePath: '\u003cpath-to-your-json\u003e/schema.json'. \n\n```\n\n# Example\n\nextract the schema of data from the following REST API : [Github-Copilot-Metrics](https://docs.github.com/fr/enterprise-cloud@latest/rest/copilot/copilot-metrics?apiVersion=2022-11-28#get-copilot-metrics-for-an-enterprise).\nplace the JSON result in a local file `schema.json`.\n\nBuild another file `data.json` where you'll store the return data from the same API endpoint (or call the API from Pharo)\n \nIn Pharo; run: \n```smalltalk\n\"building class from schema file\"\nOpenApiClassesBuilder newClassNamed: 'CopilotsMetric' inPackage: #'Copilot-Github' withPrefix: 'CG' compileFromFilePath: 'shema.json'. \n\n\"test data import from the same API point\"\nCGCopilotsMetric importFromJSON: 'data.json' asFileReference contents.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevref-bl%2Fopenapi-class-builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevref-bl%2Fopenapi-class-builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevref-bl%2Fopenapi-class-builder/lists"}