Name | openapi-dto-gen JSON |
Version |
0.2.0
JSON |
| download |
home_page | None |
Summary | Generate Java DTOs from OpenAPI/Swagger components.schemas. |
upload_time | 2025-09-18 12:33:53 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | MIT License
Copyright (c) 2025 Generated by ChatGPT
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. |
keywords |
openapi
swagger
dto
java
codegen
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# openapi-dto-gen
Generate Java DTOs from OpenAPI/Swagger `components.schemas`.
This package provides a simple command-line tool that converts the `components.schemas` section of an OpenAPI/Swagger file into Java data transfer objects (DTOs). It supports basic type mapping, enum generation, flattened `allOf` inheritance, and optional Lombok annotations.
## Installation
Install via pip after downloading the distribution files (replace `0.2.0` with the version you are installing):
```bash
pip install openapi-dto-gen-0.2.0-py3-none-any.whl
```
## Usage
Run the tool from the command line to generate DTOs:
```bash
openapi-to-dto \
--in ./openapi.yaml \
--out ./generated-src \
--package com.example.dto \
--lombok
```
* `--in` – Path to your OpenAPI YAML or JSON file.
* `--out` – Output directory for the generated `.java` files.
* `--package` – Java package name for the generated classes.
* `--lombok` – (optional) Add Lombok annotations (`@Data`, `@Builder`, etc.) to the classes.
## License
This project is provided under the MIT License; see the `LICENSE` file for details.
Raw data
{
"_id": null,
"home_page": null,
"name": "openapi-dto-gen",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "openapi, swagger, dto, java, codegen",
"author": null,
"author_email": "Generated by ChatGPT <noreply@example.com>",
"download_url": "https://files.pythonhosted.org/packages/e4/ba/175b445adcaf72f1e08cda4a5f0e1db1573b1cb54b0ba5b107ea5f087b65/openapi_dto_gen-0.2.0.tar.gz",
"platform": null,
"description": "# openapi-dto-gen\r\n\r\nGenerate Java DTOs from OpenAPI/Swagger `components.schemas`.\r\n\r\nThis package provides a simple command-line tool that converts the `components.schemas` section of an OpenAPI/Swagger file into Java data transfer objects (DTOs). It supports basic type mapping, enum generation, flattened `allOf` inheritance, and optional Lombok annotations.\r\n\r\n## Installation\r\n\r\nInstall via pip after downloading the distribution files (replace `0.2.0` with the version you are installing):\r\n\r\n```bash\r\npip install openapi-dto-gen-0.2.0-py3-none-any.whl\r\n```\r\n\r\n## Usage\r\n\r\nRun the tool from the command line to generate DTOs:\r\n\r\n```bash\r\nopenapi-to-dto \\\r\n --in ./openapi.yaml \\\r\n --out ./generated-src \\\r\n --package com.example.dto \\\r\n --lombok\r\n```\r\n\r\n* `--in` \u2013 Path to your OpenAPI YAML or JSON file.\r\n* `--out` \u2013 Output directory for the generated `.java` files.\r\n* `--package` \u2013 Java package name for the generated classes.\r\n* `--lombok` \u2013 (optional) Add Lombok annotations (`@Data`, `@Builder`, etc.) to the classes.\r\n\r\n## License\r\n\r\nThis project is provided under the MIT License; see the `LICENSE` file for details.\r\n",
"bugtrack_url": null,
"license": "MIT License\r\n \r\n Copyright (c) 2025 Generated by ChatGPT\r\n \r\n Permission is hereby granted, free of charge, to any person obtaining a copy\r\n of this software and associated documentation files (the \"Software\"), to deal\r\n in the Software without restriction, including without limitation the rights\r\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\n copies of the Software, and to permit persons to whom the Software is\r\n furnished to do so, subject to the following conditions:\r\n \r\n The above copyright notice and this permission notice shall be included in all\r\n copies or substantial portions of the Software.\r\n \r\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\n SOFTWARE.",
"summary": "Generate Java DTOs from OpenAPI/Swagger components.schemas.",
"version": "0.2.0",
"project_urls": null,
"split_keywords": [
"openapi",
" swagger",
" dto",
" java",
" codegen"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "7520bf304eb9282014ab378f27477129a896c18aaec42e7700af58dd52f398a7",
"md5": "678c9a89897091191d7cb3404da0ed3e",
"sha256": "d3e933dba8b8dcd3b7e2d814b5932f1bfd812e431948e0588c4faf57679f05bf"
},
"downloads": -1,
"filename": "openapi_dto_gen-0.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "678c9a89897091191d7cb3404da0ed3e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 9725,
"upload_time": "2025-09-18T12:33:53",
"upload_time_iso_8601": "2025-09-18T12:33:53.130053Z",
"url": "https://files.pythonhosted.org/packages/75/20/bf304eb9282014ab378f27477129a896c18aaec42e7700af58dd52f398a7/openapi_dto_gen-0.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "e4ba175b445adcaf72f1e08cda4a5f0e1db1573b1cb54b0ba5b107ea5f087b65",
"md5": "14d50faa09f29c2d705350d44d238d51",
"sha256": "704596e945b2aee1ee60f77074c8c0a4a1882ef099f1793c5b6904e05b79b7bb"
},
"downloads": -1,
"filename": "openapi_dto_gen-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "14d50faa09f29c2d705350d44d238d51",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 9893,
"upload_time": "2025-09-18T12:33:53",
"upload_time_iso_8601": "2025-09-18T12:33:53.913859Z",
"url": "https://files.pythonhosted.org/packages/e4/ba/175b445adcaf72f1e08cda4a5f0e1db1573b1cb54b0ba5b107ea5f087b65/openapi_dto_gen-0.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-09-18 12:33:53",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "openapi-dto-gen"
}