{"id":25636389,"url":"https://github.com/thygesteffensen/openapiminimal","last_synced_at":"2026-06-11T20:31:42.682Z","repository":{"id":278203428,"uuid":"934866627","full_name":"thygesteffensen/OpenApiMinimal","owner":"thygesteffensen","description":"Minimal reproducable example of build-time OpenAPI spec generation not using configured options ","archived":false,"fork":false,"pushed_at":"2025-02-18T14:55:35.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-18T15:28:15.614Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/thygesteffensen.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2025-02-18T14:31:18.000Z","updated_at":"2025-02-18T14:55:38.000Z","dependencies_parsed_at":"2025-02-18T15:40:51.851Z","dependency_job_id":null,"html_url":"https://github.com/thygesteffensen/OpenApiMinimal","commit_stats":null,"previous_names":["thygesteffensen/openapiminimal"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thygesteffensen/OpenApiMinimal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thygesteffensen%2FOpenApiMinimal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thygesteffensen%2FOpenApiMinimal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thygesteffensen%2FOpenApiMinimal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thygesteffensen%2FOpenApiMinimal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thygesteffensen","download_url":"https://codeload.github.com/thygesteffensen/OpenApiMinimal/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thygesteffensen%2FOpenApiMinimal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34217312,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"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":[],"created_at":"2025-02-23T00:46:53.940Z","updated_at":"2026-06-11T20:31:42.663Z","avatar_url":"https://github.com/thygesteffensen.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Minimalistic reproduction of build-time generated OpenAPI document version bug\n\nThis is to show that build-time OpenAPI document generation does not follow configured options as described in https://learn.microsoft.com/en-us/aspnet/core/fundamentals/openapi/aspnetcore-openapi?view=aspnetcore-9.0\u0026tabs=visual-studio#lint-generated-openapi-documents-with-spectral.\n\nThis example is created by using the Microsoft WebApi template:\n1.  `dotnet new webapi -n WebApi -minimal`\n2. Configure OpenAPI version to be $2.0$: `options.OpenApiVersion = OpenApiSpecVersion.OpenApi2_0;` in `.AddOpenApi()`.\n3. Add the `Microsoft.Extensions.ApiDescription.Server` NuGet package to emit OpenAPI document on build.\n\n\n## Steps to reproduce\n\n1. Clone repository.\n2. Run `dotnet build`.\n3. Open `~/WebApi/obj/WebApi.json` (OpenAPI document generated at build), it is in version $3.0$. (It should be in V2, as configured)\n4. Run `dotnet run`.\n5. Execute `GET {{WebApi_HostAddress}}/openapi/v1.json` form `WebApi.http`, document is in version $2.0$.\n\n## Environment\n\n```\n$ dotnet --version\n9.0.200\n```\n\nApple M2 Pro - Sequoia 15.3\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthygesteffensen%2Fopenapiminimal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthygesteffensen%2Fopenapiminimal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthygesteffensen%2Fopenapiminimal/lists"}