Description
I have a test copied below that fiales with dealing with URL "fragments", or encoded characters in a URL. However in https://github.com/p1c2u/openapi-core/blob/c24f046957fb1dc822cdb6dac0ca7fa3439723e1/openapi_core/contrib/requests/requests.py#L54
The library itself yields only the path, and not the path AND the resulting fragment from the urlparse result in
https://github.com/p1c2u/openapi-core/blob/c24f046957fb1dc822cdb6dac0ca7fa3439723e1/openapi_core/contrib/requests/requests.py#L32
.yml file
EncodedPathVal:
in: path
name: encoded_path_val
required: true
schema:
type: string
pattern: "^#[0-9a-zA-Z][0-9a-zA-Z_.]+$"
Test case
import urllib.parse
import pytest
TEST_EVENT_ENCODED = {
**TEST_EVENT,
"path": urllib.parse.quote("/encoded/#test_encoded"),
}