mirror of
https://github.com/hwchase17/langchain
synced 2024-11-10 01:10:59 +00:00
9be08a1956
- **Description:** Update _retrieve_ref inside json_schema.py to include an isdigit() check - **Issue:** This library is used inside dereference_refs inside langchain_community.agent_toolkits.openapi.spec. When I read in a yaml file which has references for "400", "401" etc; the line "out = out[component]" causes a KeyError. The isdigit() check ensures that if it is an integer like "400" or "401"; it converts it into integer before using it as a key to prevent the error. - **Dependencies:** No dependencies - **Tag maintainer:** @baskaryan --------- Co-authored-by: Harrison Chase <hw.chase.17@gmail.com> |
||
---|---|---|
.. | ||
__init__.py | ||
aiter.py | ||
env.py | ||
formatting.py | ||
html.py | ||
input.py | ||
iter.py | ||
json_schema.py | ||
loading.py | ||
pydantic.py | ||
strings.py | ||
utils.py |