[Feature]: Auto-detect base_uri
when using OpenAPI.from_file_path
#801
Labels
base_uri
when using OpenAPI.from_file_path
#801
Suggested Behavior
When I create an OpenAPI instance with a multi-file schema, I find myself writing:
This feels redundant as the implementation for
SchemaPath.from_file_path
also loads thebase_uri
, but that information is then lost:https://github.com/p1c2u/jsonschema-path/blob/f35bd22aa5a0b86fa4c194e47a29aa46908b0d10/jsonschema_path/paths.py#L86
Why is this needed?
Ideally I would write the above as:
and the
spec_base_uri
would be correctly set.The
base_uri
is technically available but is private, e.g.:References
No response
Would you like to implement a feature?
None
The text was updated successfully, but these errors were encountered: