mirror of
https://github.com/correl/openapi-core.git
synced 2024-11-28 19:19:52 +00:00
7993de894e
- overriding __dict__ is death for pickling. I renamed it to __newdict__ and tweaked the one user of it, and now this part of the structure is working fine for pickling - there are also upstream changes in jsonschema that need to be in for the overall success - this allows me to create the API spec from a swagger file once (which takes 2-20s for the files I'm working with), and cache the result as a pickle file for loading on the next startup (assuming the swagger file hasn't been updated). The load from pickle files takes 2-5ms. This is an improvement of load time by 3 orders of magnitude. |
||
---|---|---|
.. | ||
components | ||
contacts | ||
content | ||
extensions | ||
external_docs | ||
infos | ||
licenses | ||
links | ||
media_types | ||
operations | ||
parameters | ||
paths | ||
properties | ||
request_bodies | ||
responses | ||
schemas | ||
security_requirements | ||
security_schemes | ||
servers | ||
specs | ||
__init__.py | ||
exceptions.py | ||
shortcuts.py |