{"id":15176631,"url":"https://github.com/himenon/openapi-parameter-formatter","last_synced_at":"2025-10-20T01:17:43.320Z","repository":{"id":41616308,"uuid":"328625019","full_name":"Himenon/openapi-parameter-formatter","owner":"Himenon","description":"OpenAPI Query and Path Parameter Formatter.","archived":false,"fork":false,"pushed_at":"2024-03-19T12:15:26.000Z","size":362,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-09T13:51:42.371Z","etag":null,"topics":["openapi","openapi-specification","openapi3","swagger"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@himenon/openapi-parameter-formatter","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Himenon.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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}},"created_at":"2021-01-11T10:19:36.000Z","updated_at":"2022-04-29T12:10:16.000Z","dependencies_parsed_at":"2024-03-19T13:45:12.975Z","dependency_job_id":null,"html_url":"https://github.com/Himenon/openapi-parameter-formatter","commit_stats":{"total_commits":24,"total_committers":3,"mean_commits":8.0,"dds":0.5,"last_synced_commit":"1eef9e41dd532b833e61809c089967977cdadb2c"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":"Himenon/template-js","purl":"pkg:github/Himenon/openapi-parameter-formatter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Himenon%2Fopenapi-parameter-formatter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Himenon%2Fopenapi-parameter-formatter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Himenon%2Fopenapi-parameter-formatter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Himenon%2Fopenapi-parameter-formatter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Himenon","download_url":"https://codeload.github.com/Himenon/openapi-parameter-formatter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Himenon%2Fopenapi-parameter-formatter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262122880,"owners_count":23262489,"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":["openapi","openapi-specification","openapi3","swagger"],"created_at":"2024-09-27T13:22:16.453Z","updated_at":"2025-10-20T01:17:38.265Z","avatar_url":"https://github.com/Himenon.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @himenon/openapi-parameter-formatter\n\nA library that serializes OpenAPI parameter objects.\nIt is implemented according to the following style definition.\n\n- https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.1.0.md#style-examples\n\n## Usage\n\n```ts\nimport { PathParameter } from \"@himenon/openapi-parameter-formatter\";\n\nPathParameter.generate(\"color\", {\n  value: {\n    R: 100,\n    G: 200,\n    B: 150,\n  },\n  style: \"label\",\n  explode: true,\n});\n```\n\n```ts\nimport { QueryParameter } from \"@himenon/openapi-parameter-formatter\";\n\nQueryParameter.generate(\"color\", {\n  value: {\n    R: \"#100\",\n    G: \"#200\",\n    B: \"#150\",\n  },\n  style: \"form\",\n  explode: true,\n});\n\n// R=%23100\u0026G=%23200\u0026B=%23150\n```\n\n```ts\nimport { QueryParameter } from \"@himenon/openapi-parameter-formatter\";\n\nQueryParameter.generate(\"color\", {\n  value: [\"#blue\", \"#black\", \"#brown\"],\n  style: \"spaceDelimited\",\n  explode: false,\n});\n\n// color=%23blue%20%23black%20%23brown\n```\n\n```ts\nimport { QueryParameter } from \"@himenon/openapi-parameter-formatter\";\n\nQueryParameter.generate(\"color\", {\n  value: [\"#blue\", \"#black\", \"#brown\"],\n  style: \"pipeDelimited\",\n  explode: false,\n});\n\n// color=%23blue%7C%23black%7C%23brown\n```\n\n```ts\nimport { QueryParameter } from \"@himenon/openapi-parameter-formatter\";\n\nQueryParameter.generate(\"color\", {\n  value: {\n    R: 100,\n    G: 200,\n    B: 150,\n  },\n  style: \"deepObject\",\n  explode: true,\n});\n\n// color%5BR%5D=100\u0026color%5BG%5D=200\u0026color%5BB%5D=150\n```\n\n```ts\nimport { HeaderParameter } from \"@himenon/openapi-parameter-formatter\";\n\nHeaderParameter.generate(\"color\", {\n  value: [\"blue\", \"black\", \"brown\"],\n  style: \"simple\",\n  explode: false,\n});\n// \"blue,black,brown\"\n```\n\n```ts\nimport { CookieParameter } from \"@himenon/openapi-parameter-formatter\";\n\nCookieParameter.generate(\"color\", {\n  value: [\"blue\", \"black\", \"brown\"],\n  style: \"form\",\n  explode: false,\n});\n// \"color=R,100,G,200,B,150\"\n```\n\n## LICENCE\n\n[@himenon/openapi-parameter-formatter](https://github.com/Himenon/openapi-parameter-formatter)・MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhimenon%2Fopenapi-parameter-formatter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhimenon%2Fopenapi-parameter-formatter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhimenon%2Fopenapi-parameter-formatter/lists"}