{"id":20027109,"url":"https://github.com/unic/openapi-proptypes-generator","last_synced_at":"2026-01-07T00:24:44.281Z","repository":{"id":42206606,"uuid":"189176695","full_name":"unic/openapi-proptypes-generator","owner":"unic","description":"Generate PropTypes from openAPI 3 schemas","archived":false,"fork":false,"pushed_at":"2022-04-10T13:05:21.000Z","size":231,"stargazers_count":2,"open_issues_count":7,"forks_count":2,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-02-01T11:34:53.271Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/unic.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":"2019-05-29T07:47:25.000Z","updated_at":"2022-02-01T06:51:00.000Z","dependencies_parsed_at":"2022-08-12T09:31:33.631Z","dependency_job_id":null,"html_url":"https://github.com/unic/openapi-proptypes-generator","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unic%2Fopenapi-proptypes-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unic%2Fopenapi-proptypes-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unic%2Fopenapi-proptypes-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unic%2Fopenapi-proptypes-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unic","download_url":"https://codeload.github.com/unic/openapi-proptypes-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245794120,"owners_count":20673123,"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-11-13T09:09:03.734Z","updated_at":"2026-01-07T00:24:44.271Z","avatar_url":"https://github.com/unic.png","language":"JavaScript","readme":"# openapi-proptypes-generator\n\nGenerate PropTypes from openAPI 3, Swagger 2 in JSON or YAML schemas\n\n## Usage\n\nFrom your terminal, provide a source file in openAPI 3 or Swagger 2 in JSON or YAML format and a destination file where you would like your generated prop-types to be saved:\n\n```sh\nindex.js ./examples/openapi.json ./examples/proptypes-openapi.js\n```\n\nor\n\n```sh\nindex.js ./examples/openapi.yaml ./examples/proptypes-openapi.js\n```\n\nor for Swagger 2:\n\n```sh\nindex.js ./examples/swagger.json ./examples/proptypes-swagger.js\n```\n\nAdding optional 3rd parameter - schemaToParse\n\n```sh\nindex.js ./examples/openapi.yaml ./proptypes.js datamodels\n```\n\nwill generate PropTypes only from given schema (if exists in source file, else it will generate all found schemas).\n\nAlternatively you can also set an npm script in your `package.json`:\n\n```json\n{\n  \"scripts\": {\n    \"generate\": \"index.js ./examples/openapi.json ./examples/proptypes.js\"\n  }\n}\n```\n\nThen you can call it from your shell:\n\n```sh\nnpm run generate\n```\n\n## Further development\n\n- Use the proper node version, in this repo via [NVM](https://github.com/nvm-sh/nvm): `nvm use` (Stick to LTS versions only)\n- Install the project: `npm ci`\n\n## Roadmap\n\n- Pass options through CLI\n- Add tests\n- Going UMD?\n- Move to a template(s) based system instead of a string generation?\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funic%2Fopenapi-proptypes-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funic%2Fopenapi-proptypes-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funic%2Fopenapi-proptypes-generator/lists"}