{"id":19016292,"url":"https://github.com/akhansari/fsharp.openapi","last_synced_at":"2025-04-23T02:33:24.034Z","repository":{"id":44934747,"uuid":"280001968","full_name":"akhansari/FSharp.OpenApi","owner":"akhansari","description":"F# Wrapper for OpenAPI.NET","archived":false,"fork":false,"pushed_at":"2025-01-17T09:00:06.000Z","size":71,"stargazers_count":51,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-17T18:23:29.429Z","etag":null,"topics":["fsharp","openapi"],"latest_commit_sha":null,"homepage":"","language":"F#","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/akhansari.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-07-15T23:16:41.000Z","updated_at":"2025-04-01T16:17:23.000Z","dependencies_parsed_at":"2025-04-17T07:33:19.164Z","dependency_job_id":"94ef14d6-f5d7-4ae1-904b-3125b6f97241","html_url":"https://github.com/akhansari/FSharp.OpenApi","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/akhansari%2FFSharp.OpenApi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akhansari%2FFSharp.OpenApi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akhansari%2FFSharp.OpenApi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akhansari%2FFSharp.OpenApi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akhansari","download_url":"https://codeload.github.com/akhansari/FSharp.OpenApi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250357941,"owners_count":21417380,"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":["fsharp","openapi"],"created_at":"2024-11-08T19:42:58.962Z","updated_at":"2025-04-23T02:33:24.017Z","avatar_url":"https://github.com/akhansari.png","language":"F#","funding_links":[],"categories":[],"sub_categories":[],"readme":"## FSharp OpenAPI [![NuGet Status](https://img.shields.io/nuget/v/FSharp.OpenApi.svg)](https://www.nuget.org/packages/FSharp.OpenApi)\n\nF# Wrapper for [OpenAPI.NET SDK](https://github.com/microsoft/OpenAPI.NET).\n\n- Describe API specifications with computation expressions.\n- Provide helpers for F# libraries to write specifications and exposing them to Scalar UI.\n\nThis is still a work in progress project and breaking changes could be frequent.\\\nContributions are welcome.\n\n### Example Usage\n\nCreating an OpenAPI document\n\n```fsharp\nlet document =\n    apiDocument {\n        info (apiInfo {\n            version \"1.0.0\"\n            title \"Swagger Petstore (Simple)\"\n        })\n        servers [\n            apiServer {\n                url \"http://petstore.swagger.io/api\"\n            }\n        ]\n        paths [\n            \"/pets\", apiPathItem {\n                operations [\n                    OperationType.Get, apiOperation {\n                        description \"Returns all pets from the system that the user has access to\"\n                        responses [\n                            HttpStatusCode.OK, apiResponse {\n                                description \"OK\"\n                            }\n                        ]\n                    }\n                ]\n            }\n        ]\n    }\n\nlet outputString =\n    document.Serialize (OpenApiSpecVersion.OpenApi3_0, OpenApiFormat.Json)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakhansari%2Ffsharp.openapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakhansari%2Ffsharp.openapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakhansari%2Ffsharp.openapi/lists"}