Add type inspection for PrimaryKeyRelatedField (#26)

Guess the type for PrimaryKeyRelatedField from the related ModelField.
This commit is contained in:
Nicolas Delaby
2017-12-22 21:00:13 +01:00
committed by Cristi Vîjdea
parent 8a8a9faeeb
commit f05889292a
5 changed files with 16 additions and 8 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ def swagger_dict(generator):
@pytest.fixture
def validate_schema():
def validate_schema(db):
def validate_schema(swagger):
from flex.core import parse as validate_flex
from swagger_spec_validator.validator20 import validate_spec as validate_ssv
+1 -1
View File
@@ -1042,7 +1042,7 @@ definitions:
snippets:
type: array
items:
type: string
type: integer
uniqueItems: true
last_connected_ip:
description: i'm out of ideas