René's URL Explorer Experiment


Title: feat: Support multiple OpenAPI specs per server by thced · Pull Request #97 · extenda/openapi-httpserver-java · GitHub

Open Graph Title: feat: Support multiple OpenAPI specs per server by thced · Pull Request #97 · extenda/openapi-httpserver-java

X Title: feat: Support multiple OpenAPI specs per server by thced · Pull Request #97 · extenda/openapi-httpserver-java

Description: Summary Adds OpenApiServer.Builder.addSpec(spec, handlers, validators) so one server can host multiple OpenAPI specs (e.g. v1/v2 side-by-side or public + admin in one process) Each spec is mounted at its own basePath as an independent binding with its own handler/validator maps — operationIds and security-scheme names only need to be unique within a single spec Legacy single-spec API (.spec() / .handler() / .securityValidator()) is preserved; mixing it with addSpec() in the same builder is rejected at build time Duplicate basePath across bindings is rejected; nested prefixes (/ plus /api/...) are allowed and resolved by the JDK HttpServer's longest-prefix-match Design: docs/superpowers/specs/2026-05-22-multiple-specs-design.md Implementation plan: docs/superpowers/plans/2026-05-22-multiple-specs.md Test plan mvn test — 470 unit tests pass (5 new in MultiSpecServerTest covering namespacing, duplicate basePath, per-binding security wiring, legacy+addSpec rejection) mvn verify — 67 integration tests pass (new MultiSpecServerIT boots a real HttpServer with two derived specs at /api/v1 and /api/v2) No new OpenAPI fixture files — multi-spec tests derive both Spec instances from the existing openapi.json via a new SpecFixtures helper README documents the new addSpec() usage

Open Graph Description: Summary Adds OpenApiServer.Builder.addSpec(spec, handlers, validators) so one server can host multiple OpenAPI specs (e.g. v1/v2 side-by-side or public + admin in one process) Each spec is mounted...

X Description: Summary Adds OpenApiServer.Builder.addSpec(spec, handlers, validators) so one server can host multiple OpenAPI specs (e.g. v1/v2 side-by-side or public + admin in one process) Each spec is mounted...

Opengraph URL: https://github.com/extenda/openapi-httpserver-java/pull/97

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:1c91fab6-f7c6-ed63-b4b9-d4ee93e1e076
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9C94:BF7F1:87BAB:B7D85:6AED329C
html-safe-nonced3f3f7c51b7bda9b116481b699039e48e17a97289d40b4ce9f3fa2a14b926784
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Qzk0OkJGN0YxOjg3QkFCOkI3RDg1OjZBRUQzMjlDIiwidmlzaXRvcl9pZCI6IjMxMTU4MzgwOTE3MjU0NTE5MzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace72716347e644dc09e469e5823ed3d7d89eb0817407129b457f3aa07744e2202
hovercard-subject-tagpull_request:3730664468
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/extenda/openapi-httpserver-java/pull/97/files
twitter:imagehttps://avatars.githubusercontent.com/u/1101587?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1101587?s=400&v=4
og:image:altSummary Adds OpenApiServer.Builder.addSpec(spec, handlers, validators) so one server can host multiple OpenAPI specs (e.g. v1/v2 side-by-side or public + admin in one process) Each spec is mounted...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonee51d0b7b5ab34b1688c05b54c3ed17b8658b2fa9bca973a9c740683ccb12cf4a
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/extenda/openapi-httpserver-java git https://github.com/extenda/openapi-httpserver-java.git
octolytics-dimension-user_id5753979
octolytics-dimension-user_loginextenda
octolytics-dimension-repository_id882991450
octolytics-dimension-repository_nwoextenda/openapi-httpserver-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id882991450
octolytics-dimension-repository_network_root_nwoextenda/openapi-httpserver-java
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release59ebb7b901cc154ecc179a44f266fcf69f343b30
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/extenda/openapi-httpserver-java/pull/97/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fextenda%2Fopenapi-httpserver-java%2Fpull%2F97%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fextenda%2Fopenapi-httpserver-java%2Fpull%2F97%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=extenda%2Fopenapi-httpserver-java
Reloadhttps://github.com/extenda/openapi-httpserver-java/pull/97/files
Reloadhttps://github.com/extenda/openapi-httpserver-java/pull/97/files
Reloadhttps://github.com/extenda/openapi-httpserver-java/pull/97/files
extendahttps://github.com/extenda
openapi-httpserver-javahttps://github.com/extenda/openapi-httpserver-java
Codehttps://github.com/extenda/openapi-httpserver-java
Issueshttps://github.com/extenda/openapi-httpserver-java/issues
Pull requests2 (2)https://github.com/extenda/openapi-httpserver-java/pulls
Actionshttps://github.com/extenda/openapi-httpserver-java/actions
Security and qualityhttps://github.com/extenda/openapi-httpserver-java/security
Insightshttps://github.com/extenda/openapi-httpserver-java/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fextenda%2Fopenapi-httpserver-java%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fextenda%2Fopenapi-httpserver-java%2Fissues%2Fnew%2Fchoose
thcedhttps://github.com/thced
masterhttps://github.com/extenda/openapi-httpserver-java/tree/master
feat/multiple-specshttps://github.com/extenda/openapi-httpserver-java/tree/feat/multiple-specs
Conversation 1 https://github.com/extenda/openapi-httpserver-java/pull/97
Commits 18 https://github.com/extenda/openapi-httpserver-java/pull/97/commits
Checks 6 https://github.com/extenda/openapi-httpserver-java/pull/97/checks
Files changed https://github.com/extenda/openapi-httpserver-java/pull/97/files
Please reload this pagehttps://github.com/extenda/openapi-httpserver-java/pull/97/files
feat: Support multiple OpenAPI specs per server https://github.com/extenda/openapi-httpserver-java/pull/97/files#top
Show all changes 18 commits https://github.com/extenda/openapi-httpserver-java/pull/97/files
d5a3e31 docs: Design spec for multiple OpenAPI specs per server thced May 22, 2026 https://github.com/extenda/openapi-httpserver-java/pull/97/commits/d5a3e3154df34c10a7fe15db9420531d35d34246
901c783 docs: Implementation plan for multiple OpenAPI specs per server thced May 22, 2026 https://github.com/extenda/openapi-httpserver-java/pull/97/commits/901c7832994f61574716fa869fe59a346d0c1f7c
a73b4c3 refactor: Add SpecBinding record for per-spec server state thced May 22, 2026 https://github.com/extenda/openapi-httpserver-java/pull/97/commits/a73b4c39a7a0e54c6140ae49611634b589f12500
2bbf9be docs: Check off Task 1 completion in plan thced May 22, 2026 https://github.com/extenda/openapi-httpserver-java/pull/97/commits/2bbf9be1da9995e56db81318624379c5a2fcdd9e
edce6b0 refactor: Drive OpenApiServer from a list of SpecBinding thced May 22, 2026 https://github.com/extenda/openapi-httpserver-java/pull/97/commits/edce6b03af213371e6703d5a97b73a2935629ad0
e1a5790 style: Use imported List name in OpenApiServer constructor thced May 22, 2026 https://github.com/extenda/openapi-httpserver-java/pull/97/commits/e1a5790e7852c6f5301cf5985c6acd9be3ec426c
c789467 test: Add SpecFixtures helper to derive multiple specs from one fixture thced May 22, 2026 https://github.com/extenda/openapi-httpserver-java/pull/97/commits/c7894673f3e7e8750be3043a896e636cb3625a1a
b6ad61c style: Drop unneeded SuppressWarnings on deepClone thced May 22, 2026 https://github.com/extenda/openapi-httpserver-java/pull/97/commits/b6ad61c1051446bc5bb17149b886309a4f5c4cf0
cdd7b0d docs: Mark Task 3 steps complete in plan thced May 22, 2026 https://github.com/extenda/openapi-httpserver-java/pull/97/commits/cdd7b0d9e09beb52b0cda51a80d1fa644d559b62
243c578 feat: Add addSpec() builder method for multi-spec servers thced May 22, 2026 https://github.com/extenda/openapi-httpserver-java/pull/97/commits/243c57848739e747215d2cc0af2e5f3f3c5c266d
cf8152d refactor: Strengthen multi-spec validation messages and tests thced May 22, 2026 https://github.com/extenda/openapi-httpserver-java/pull/97/commits/cf8152db04c3de4d5cd45873af1c571a898ab795
6ef0d94 test: Cover multi-spec namespacing, conflicts, and mixed builder forms thced May 22, 2026 https://github.com/extenda/openapi-httpserver-java/pull/97/commits/6ef0d94f1afb68f73174cde4c1d4db4b88c66712
9bda1a6 test: Integration test for multi-spec server under real HttpServer thced May 22, 2026 https://github.com/extenda/openapi-httpserver-java/pull/97/commits/9bda1a61a18b9bb0a96f00344eaa170243e87de9
0a0e2c7 docs: Document addSpec() for multi-spec servers thced May 22, 2026 https://github.com/extenda/openapi-httpserver-java/pull/97/commits/0a0e2c727fcf786acf56104b90af3ad6d3c08e99
10251a8 chore: Check off Task 11 in multi-spec plan thced May 22, 2026 https://github.com/extenda/openapi-httpserver-java/pull/97/commits/10251a849ecc4b41ec16c2c7cad9fc2ed72dd411
fd83072 test: Prove multi-spec loading from directory and JAR classpath thced May 22, 2026 https://github.com/extenda/openapi-httpserver-java/pull/97/commits/fd830729f7dfd89520f4902102aed7759a7f17f3
8b29ab0 refactor: Extract helpers in OpenApiServer to reduce cognitive comple… thced May 22, 2026 https://github.com/extenda/openapi-httpserver-java/pull/97/commits/8b29ab096c94e45e3cadd8946d5afd34beff3db0
966827e refactor: Hoist builder setup out of assertThatThrownBy lambdas thced May 22, 2026 https://github.com/extenda/openapi-httpserver-java/pull/97/commits/966827e814e425071a506351e79c6bfdbf8c8ff7
Clear filters https://github.com/extenda/openapi-httpserver-java/pull/97/files
Please reload this pagehttps://github.com/extenda/openapi-httpserver-java/pull/97/files
Please reload this pagehttps://github.com/extenda/openapi-httpserver-java/pull/97/files
README.md https://github.com/extenda/openapi-httpserver-java/pull/97/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
2026-05-22-multiple-specs.md https://github.com/extenda/openapi-httpserver-java/pull/97/files#diff-76bfd9ad63e5b17e70e57c4d21f4cb8b3d2c0d5a6b6044f962ff4fdc2fb43410
2026-05-22-multiple-specs-design.md https://github.com/extenda/openapi-httpserver-java/pull/97/files#diff-9e6cc042f5b73ee98361b67fd4b26729c29ff5ce50d462593d905bccd9cec053
OpenApiServer.java https://github.com/extenda/openapi-httpserver-java/pull/97/files#diff-3a18cfb76c0dfa3899243b203697e106a4b62c9f26962d4b229f2acbbf6b2290
SpecBinding.java https://github.com/extenda/openapi-httpserver-java/pull/97/files#diff-c7d27a965a3e651845cd71cdb196f78b6d7f679a95074784e9fe74a5b1fc83a6
MultiSpecClasspathLoadingTest.java https://github.com/extenda/openapi-httpserver-java/pull/97/files#diff-3db7622507b05526c1e73aa542c2878c7cc5bd66ea4d59b6c325f498b49ebe00
MultiSpecServerIT.java https://github.com/extenda/openapi-httpserver-java/pull/97/files#diff-19245d8948e484bade4ee33cd576d90646b6b73dd40617fb85d9a4d4a17f63dd
MultiSpecServerTest.java https://github.com/extenda/openapi-httpserver-java/pull/97/files#diff-0f99ba5cb0d291270420197efbda989c1713418daca101d8e35514709b13c79f
SpecAnchor.java https://github.com/extenda/openapi-httpserver-java/pull/97/files#diff-b606fc0e98aea1521affc66d0a4926425de1cf464aa3c6671d5d463ebd987723
SpecFixtures.java https://github.com/extenda/openapi-httpserver-java/pull/97/files#diff-50e33560430fb347b294334cca20c03eab366b698bed3f92098cce19ea4c1331
openapi.json https://github.com/extenda/openapi-httpserver-java/pull/97/files#diff-3be9d7a70e06a299bbbd5564f4410befabbf6afa42b5b439d985f2a533fce005
openapi.json https://github.com/extenda/openapi-httpserver-java/pull/97/files#diff-3c765eb3ccbd6b631a4827bbcda595af98699807a70b6d758ee42e78f3606487
README.mdhttps://github.com/extenda/openapi-httpserver-java/pull/97/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
View file https://github.com/extenda/openapi-httpserver-java/blob/966827e814e425071a506351e79c6bfdbf8c8ff7/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/extenda/openapi-httpserver-java/pull/97/{{ revealButtonHref }}
https://github.com/extenda/openapi-httpserver-java/pull/97/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/extenda/openapi-httpserver-java/pull/97/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/extenda/openapi-httpserver-java/pull/97/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/extenda/openapi-httpserver-java/pull/97/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
Please reload this pagehttps://github.com/extenda/openapi-httpserver-java/pull/97/files
Please reload this pagehttps://github.com/extenda/openapi-httpserver-java/pull/97/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.