Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Server urls with variables aren't supported

Open
#60 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
api

Research direction

Start by reproducing the OpenAPI v3 example with the templated Heroku server URL and the concrete request URL shown in the issue. Trace server matching and validation to determine how the prId variable is handled; done means the concrete URL is accepted while the existing /api/v1 path behavior remains valid.

Written by the indexing model from the issue text.

Description

kind/enhancement

If one has openapiv3 with server urls:

  - url: https://app-pr-{prId}.herokuapp.com/api/v1	   
     description: Staging	    
     variables:	
        prId:	
           default: '1'

Then using https://app-pr-56.herokuapp.com/api/v1 will result into
InvalidServer('Invalid request server https://app-pr-56.herokuapp.com/api/v1/user/login',).

Workaround for now is just to skip domain with url: /api/v1.

Dominant language
Python
Stars
368
Forks
140
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from python-openapi/openapi-core

All issues in python-openapi/openapi-core

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.