mirror of
https://github.com/correl/openapi-core.git
synced 2024-12-29 11:09:25 +00:00
8 lines
193 B
Python
8 lines
193 B
Python
from __future__ import division
|
|
|
|
from openapi_core.schema.servers import get_server_url
|
|
|
|
|
|
def get_spec_url(spec, index=0):
|
|
servers = spec / 'servers'
|
|
return get_server_url(servers / 0)
|