Commit graph

112 commits

Author SHA1 Message Date
p1c2u
c900f63e7d Schema content refactor 2 2021-03-30 12:37:01 +01:00
p1c2u
e128fd59f1 Schema content refactor 2021-03-30 11:45:45 +01:00
p1c2u
accd9cf48b Spec validation customization 2021-02-12 23:41:01 +00:00
p1c2u
dcec29b1aa Remove security on operation level fix 2021-02-02 12:58:31 +00:00
p1c2u
f6ba057fd2 Revert "Merge pull request #243 from Beirdo/master"
This reverts commit 1583454b56, reversing
changes made to 8bbdb5931b.
2020-07-20 14:58:05 +01:00
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
p1c2u
9c22ddf01c Paths finder paths order fix 2020-03-23 11:28:56 +00:00
Artur Maciag
c0b9916dc8 Extensible schema models 2020-03-04 00:03:48 +00:00
Artur Maciag
dcb7161af7 Path pattern finder 2020-03-02 11:26:54 +00:00
Artur Maciag
1bea6013c3 Property read-only and write-only support 2020-02-17 12:42:13 +00:00
Pedro Peixoto
975ac0d7c9 Updating unmarshal and validation methods' signatures to propagate the context until reaching the properties. 2020-02-17 12:25:44 +00:00
Pedro Peixoto
8260426b91 Creating a decorator that warns the developer whenever he fails to set a context. 2020-02-17 12:23:40 +00:00
Pedro Peixoto
aa95bc5d02 Providing a context whenever unmarshalling objects on Request and Responses
(readOnly and writeOnly applies on to properties)
2020-02-17 12:17:44 +00:00
Pedro Peixoto
ca369f795a Creating read_only and write_only properties on the Schema 2020-02-17 12:14:46 +00:00
Artur Maciag
aa7ed31acd Missing path model fields 2020-02-07 11:21:11 +00:00
Artur Maciag
fde1b6bdc5 Security providers and security models retouch 2020-02-04 13:58:42 +00:00
Artur Maciag
4ae5a085a3 Security HTTP scheme type support 2020-02-04 11:14:51 +00:00
p1c2u
d915f23414 Security validation with Api Key support 2020-02-04 11:06:52 +00:00
p1c2u
d4ac0978d5 Missing Info models 2020-02-03 19:50:21 +00:00
Artur Maciag
ab2e10f998 Custom media type deserializers 2020-02-03 18:35:48 +00:00
Artur Maciag
4044483194 style fixes 2020-02-03 14:55:50 +00:00
Artur Maciag
6d8b2e5111 Move media deserializers to separate subpackage 2020-02-03 13:34:43 +00:00
Artur Maciag
58d5c26fee Move param deserializers to separate subpackage 2020-02-03 13:05:44 +00:00
Artur Maciag
7b87cf9019 Move value getters out of schema models 2020-02-03 11:29:01 +00:00
Artur Maciag
7da1ea6b77 Get rid of cast in schema 2020-02-03 10:59:27 +00:00
Artur Maciag
b4c10e847a Split cast and deserialise processes 2020-02-03 10:17:27 +00:00
Artur Maciag
475076a2a2 Deserialize models without schema 2020-02-03 09:31:02 +00:00
p1c2u
61fb830ac2 Get rid of unmarshal in schema 2020-02-03 01:30:25 +00:00
p1c2u
3f7442624a Move unmarshal out of schema models 2020-02-02 22:56:25 +00:00
Artur Maciag
376dc205ae unmarshalling formatters 2020-02-01 23:50:56 +00:00
Artur Maciag
6b6abc0b01 Move schema validator to separate subpackage 2020-01-28 09:51:09 +00:00
A
c3f9adadaa
Merge pull request #184 from p1c2u/refactor/move-casters-to-subpackage
Move casters to separate subpackage
2020-01-27 13:24:08 +00:00
Artur Maciag
0f7fa5287e Python 3.5 json binary input deserialization fix 2020-01-24 21:02:00 +00:00
p1c2u
368f6882e5 Move casters to separate subpackage 2020-01-23 22:48:34 +00:00
p1c2u
b026fb2151 Move Unmarshallers to separate subpackage 2020-01-23 18:30:31 +00:00
Artur Maciag
da3b6ee669 Shortcuts cleanup 2020-01-17 14:52:26 +00:00
Artur Maciag
7360fca581 Flake8 check fixes 2020-01-17 14:43:18 +00:00
Gouji Ochiai
8152d20e8e use getall instead of getlist 2019-11-19 13:07:20 +09:00
p1c2u
44de9c4322 Validation schema errors iter fix 2019-10-22 22:01:17 +01:00
p1c2u
c4d4ed8515 Server missing fields 2019-10-22 18:21:40 +01:00
p1c2u
d7840d0d61 Operations more fields 2019-10-22 17:20:52 +01:00
p1c2u
cfdf3410d2 Narrow validation exceptions 2019-10-20 15:06:13 +01:00
p1c2u
2bca2526f2 Schema validation errors list 2019-10-20 15:06:11 +01:00
p1c2u
88459829ad Schema validate exceptions refactor 2019-10-20 13:25:21 +01:00
p1c2u
939cec94e7 Schema unmarshal exceptions refactor 2019-10-20 13:00:14 +01:00
p1c2u
fc60083e78 Get rid of schema validation in unmarshal 2019-09-13 01:55:22 +01:00
p1c2u
a2fc5284c6 Get rid of object validator 2019-09-12 19:56:39 +01:00
p1c2u
b2410e2f3a OAS 3.0 validator 2019-09-12 19:46:11 +01:00
p1c2u
c4c51637d2 Rename schema validate to obj_validate 2019-09-12 19:46:11 +01:00
p1c2u
5273a7ff7c Separate cast and unmarshal 2019-09-02 23:48:13 +01:00