{"id":30855740,"url":"https://github.com/podhmo/json2swagger","last_synced_at":"2026-04-20T10:33:21.168Z","repository":{"id":138473086,"uuid":"90054333","full_name":"podhmo/json2swagger","owner":"podhmo","description":"generate swagger spec from json (or yaml) file","archived":false,"fork":false,"pushed_at":"2017-05-03T05:15:17.000Z","size":9,"stargazers_count":0,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-08T15:52:14.728Z","etag":null,"topics":["json","swagger","yaml"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/podhmo.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.txt","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-05-02T16:23:55.000Z","updated_at":"2017-05-02T16:25:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"11eecca1-0f29-4731-9929-b867bef4a4a3","html_url":"https://github.com/podhmo/json2swagger","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/podhmo/json2swagger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/podhmo%2Fjson2swagger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/podhmo%2Fjson2swagger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/podhmo%2Fjson2swagger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/podhmo%2Fjson2swagger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/podhmo","download_url":"https://codeload.github.com/podhmo/json2swagger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/podhmo%2Fjson2swagger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32043071,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"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":["json","swagger","yaml"],"created_at":"2025-09-07T11:09:52.151Z","updated_at":"2026-04-20T10:33:21.161Z","avatar_url":"https://github.com/podhmo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"json2swagger\n========================================\n\n.. image:: https://travis-ci.org/podhmo/json2swagger.svg?branch=master\n    :target: https://travis-ci.org/podhmo/json2swagger\n\n\n\n.. code-block:: bash\n\n  $ json2swagger --help\n  \n  usage: json2swagger [-h] [--name NAME] [--annotations ANNOTATIONS]\n                      [--show-minimap]\n                      [--logging {CRITICAL,DEBUG,ERROR,INFO,NOTSET,WARN,WARNING}]\n                      [--emit {schema,info}] [--dst DST]\n                      [src]\n  \n  positional arguments:\n    src\n  \n  optional arguments:\n    -h, --help            show this help message and exit\n    --name NAME\n    --annotations ANNOTATIONS\n    --show-minimap\n    --logging {CRITICAL,DEBUG,ERROR,INFO,NOTSET,WARN,WARNING}\n    --emit {schema,info}\n    --dst DST\n  \n\nexample\n----------------------------------------\n\ndata.yaml\n\n.. code-block:: yaml\n\n  # from: https://github.com/nfarina/homebridge/blob/master/config-sample.json\n  bridge:\n    name: Homebridge\n    username: CC:22:3D:E3:CE:30\n    port: 51826\n    pin: 031-45-154\n  description: This is an example configuration file with one fake accessory and one\n    fake platform. You can use this as a template for creating your own configuration\n    file containing devices you actually own.\n  accessories:\n  - accessory: WeMo\n    name: Coffee Maker\n  platforms:\n  - platform: PhilipsHue\n    name: Hue\n\n\n.. code-block:: bash\n\n  $ json2swagger --name conf examples/readme/data.yaml \u003e examples/readme/swagger.yaml\n  \n\nswagger.yaml\n\n.. code-block:: yaml\n\n  definitions:\n    bridge:\n      type: object\n      properties:\n        name:\n          type: string\n          example: Homebridge\n        username:\n          type: string\n          example: CC:22:3D:E3:CE:30\n        port:\n          type: integer\n          example: 51826\n        pin:\n          type: string\n          example: 031-45-154\n      required:\n      - name\n      - username\n      - port\n      - pin\n    accessoriesItem:\n      type: object\n      properties:\n        accessory:\n          type: string\n          example: WeMo\n        name:\n          type: string\n          example: Coffee Maker\n      required:\n      - accessory\n      - name\n    accessories:\n      type: array\n      items:\n        $ref: '#/definitions/accessoriesItem'\n    platformsItem:\n      type: object\n      properties:\n        platform:\n          type: string\n          example: PhilipsHue\n        name:\n          type: string\n          example: Hue\n      required:\n      - platform\n      - name\n    platforms:\n      type: array\n      items:\n        $ref: '#/definitions/platformsItem'\n    conf:\n      type: object\n      properties:\n        bridge:\n          $ref: '#/definitions/bridge'\n        description:\n          type: string\n          example: This is an example configuration file with one fake accessory and\n            one fake platform. You can use this as a template for creating your own\n            configuration file containing devices you actually own.\n        accessories:\n          $ref: '#/definitions/accessories'\n        platforms:\n          $ref: '#/definitions/platforms'\n      required:\n      - bridge\n      - description\n      - accessories\n      - platforms\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpodhmo%2Fjson2swagger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpodhmo%2Fjson2swagger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpodhmo%2Fjson2swagger/lists"}