A
f5d26112b2
Merge pull request #130 from MCapitani/add-path-param
...
add support for path-level parameters
2019-05-17 10:30:51 +01:00
Artur Maciąg
f8e4e34e39
String byte format fix
2019-03-22 14:35:12 +00:00
A
aa978cbe00
Merge pull request #121 from ondratu/master
...
Object additionalProperties support
2019-03-22 13:21:43 +00:00
Artur Maciąg
cd0ca5d26f
Raw value type strict validation
2019-03-22 11:21:50 +00:00
Ondrej Tuma
83b9c37915
Object additionalProperties support
...
* Default is true like in specification
* When is set false, it works like in past
* Object with types works
2019-03-12 16:01:28 +01:00
Marco Capitani
f232f7419b
add support for path-level parameters
2019-03-08 10:19:09 +01:00
Artur Maciag
a533a080cc
byte string format
2019-02-27 00:59:45 +00:00
Artur Maciag
48d1d1c8ae
UUID string format tests
2019-02-26 14:22:28 +00:00
A
922fce4085
Merge pull request #75 from smarlowucf/flake8
...
Switch test requirement to pytest-flake8.
2019-02-24 03:29:44 +00:00
Artur Maciąg
dccb93bbfe
test validaotr escape sequence fix
2019-02-24 02:28:45 +00:00
Domen Kožar
399602f013
sync master changes with exception refactoring
2018-09-13 11:59:44 +01:00
Marcin Molenda
e5cb549ea1
Expose tags in Operation object
2018-08-31 16:57:53 +02:00
p1c2u
0cbbdb0232
Unmarshal any schema type
2018-08-23 09:29:36 +01:00
p1c2u
05b8a30091
Any schema type
2018-08-22 14:27:32 +01:00
Artur Maciag
82f32be1e7
String validation
2018-08-22 13:49:24 +01:00
p1c2u
0915e94530
Object validation
2018-08-22 09:34:18 +01:00
Artur Maciag
b75798aa62
Handle parameter deserialization errors
2018-08-17 13:25:31 +01:00
A
ac797bcf2a
Merge pull request #46 from HoverHell/paramlocations
...
Request headers and cookies parameter parsing fix
2018-08-13 20:21:46 +01:00
p1c2u
3ab55e44bd
Lazy schema references
2018-07-28 22:12:47 +01:00
Rafael Caricio
15fc9b009a
Makes it possible to access API examples
2018-07-24 09:47:02 +02:00
Rafael Caricio
8ab0b6206e
Populate operation_id attr
2018-07-23 18:02:51 +02:00
Artur Maciag
f8e977cc17
Parameters tests
2018-07-09 12:10:05 +01:00
Artur Maciag
54b8011603
Mimetype wildcards support
2018-05-30 15:01:01 +01:00
Artur Maciag
78f55ee80f
Schema additional properties support
2018-05-30 11:20:35 +01:00
Artur Maciag
d87b60ade7
Schema format accepts any value
2018-05-30 09:41:34 +01:00
Artur Maciag
4c75f0f9b7
OneOf schema support
2018-05-25 16:50:09 +01:00
Artur Maciag
4e1a61aace
Exceptions restructure
2018-05-25 11:30:50 +01:00
Artur Maciag
9b05d7b271
Wrapper restructure
2018-05-25 11:30:50 +01:00
Artur Maciag
7111a91cef
Validators restructure
2018-05-25 11:30:50 +01:00
Artur Maciag
734a4673f8
Schema objects restructure
2018-05-25 11:30:50 +01:00
p1c2u
0350562b54
Response JSON text as array fix
2018-04-23 20:40:54 +01:00
amcmanigal
56be4b10eb
Fixing Subschema Required Properties Validation
...
Currently if valid swagger syntax is used for model composition an
error will be thrown due to the lack of a type property. This was
corrected by making object the default type.
schema_type = schema_deref.get('type', 'object')
I changed the swagger definition to test for this. Now PetCreate is a
composite of PetCreatePartOne and PetCreatePartTwo. However, this
caused `test_post_pets_empty_body` to fail, which turned out to be a
bug in the required properties.
In `_unmarshal_object` the `get_all_properties` method is called to get
all properties from the subschemas. However, this is not done for
required properties, meaning that only top level required properties
will be correctly validated. I have added a
`get_all_required_properties’ to fix this.
This caused `test_get_pets` to fail. In this case the bug allowed an
incorrect test case to be introduced. Pet requires `id`, but it also
requires name because it inherits from PetCreate. I have fixed this
test case by adding the missing required property.
After these changes `test_get_pet_not_found` failed due to a string
formatting error (double quotes vs single quotes). I fixed this by
switching to dictionary comparisons.
2018-04-04 10:15:45 -04:00
Artur Maciag
c733f9434a
Allow undefined schema type
2018-04-04 11:26:21 +01:00
A
a3853da056
Merge pull request #15 from pbasista/bugfix/empty-servers
...
Add the default value for the 'servers' array
2018-02-28 15:09:05 +00:00
Artur Maciag
b1f58d7261
Boolean value cast fix
2018-02-28 13:39:23 +00:00
Peter Bašista
a0305fb97d
Add the default value for the 'servers' array
...
The specification:
https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#oasObject
requires that if the 'servers' array is not provided or empty,
its default value is an array of a single Server Object
with 'url' of '/'.
2018-02-18 09:38:00 +01:00
Artur Maciag
fd450e6be6
Parameter deserializers
2017-11-14 16:05:03 +00:00
Artur Maciag
2d50e920ab
Schema enum
2017-11-14 13:36:05 +00:00
Artur Maciag
1739828559
AllOf support
2017-11-06 16:50:00 +00:00
Artur Maciag
219d1c650e
Flask wrapper status code fix
2017-11-06 15:08:21 +00:00
Artur Maciag
b69e268701
Response dereference support
2017-11-06 14:57:08 +00:00
Artur Maciag
128971185a
Response data renamed
2017-11-06 14:05:06 +00:00
Artur Maciag
3541793ff3
Check response invalid content type
2017-11-06 13:53:49 +00:00
Artur Maciag
08fdf7c9aa
Response validator
2017-11-06 13:32:31 +00:00
Artur Maciag
1a05e7da89
Responses and headers objects
2017-11-06 11:00:13 +00:00
Artur Maciag
6f1e45e255
Flask wrapper added
2017-11-03 14:17:38 +00:00
Artur Maciag
37f09d7571
Factories and exceptions cleanup
2017-11-03 11:18:48 +00:00
Artur Maciag
9bdb13f654
Request validator
2017-11-02 16:05:25 +00:00
Artur Maciag
372f74f16e
Allow empty value with default
2017-10-19 12:28:28 +01:00
Artur Maciag
a86c49d1be
Parameter with required and allow empty value support
2017-10-18 14:42:23 +01:00