openapi-core/openapi_core/schema/schemas
Gavin Hurlbut 7993de894e Small change to Schema model to allow generated specs to be picklable
- 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.
2020-04-19 13:08:07 -07:00
..
__init__.py Schema objects restructure 2018-05-25 11:30:50 +01:00
enums.py Property read-only and write-only support 2020-02-17 12:42:13 +00:00
exceptions.py unmarshalling formatters 2020-02-01 23:50:56 +00:00
factories.py Creating read_only and write_only properties on the Schema 2020-02-17 12:14:46 +00:00
generators.py Schema objects restructure 2018-05-25 11:30:50 +01:00
models.py Small change to Schema model to allow generated specs to be picklable 2020-04-19 13:08:07 -07:00
registries.py Lazy schema references 2018-07-28 22:12:47 +01:00
types.py Move Unmarshallers to separate subpackage 2020-01-23 18:30:31 +00:00
util.py Property read-only and write-only support 2020-02-17 12:42:13 +00:00