Created
May 11, 2015 04:16
-
-
Save cancan101/79ecd0e07601da6c7cae to your computer and use it in GitHub Desktop.
Issue with $ref in Swagger 1.2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"swaggerVersion": "1.2", | |
"apis": [ | |
{ | |
"operations": [ | |
{ | |
"parameters": [ | |
{ | |
"paramType": "path", | |
"required": true, | |
"type": "string", | |
"name": "pk" | |
}, | |
{ | |
"name": "full_name", | |
"format": "string", | |
"paramType": "form", | |
"required": false, | |
"type": "FullNameSerializer", | |
"description": "" | |
} | |
], | |
"nickname": "Subject_partial_update", | |
"notes": "", | |
"summary": "", | |
"type": "SubjectSerializer", | |
"method": "PATCH" | |
} | |
], | |
"path": "/api/subjects/{pk}/", | |
"description": "" | |
} | |
], | |
"models": { | |
"FullNameSerializer": { | |
"required": [], | |
"id": "FullNameSerializer", | |
"properties": { | |
"name_first": { | |
"description": null, | |
"required": false, | |
"readOnly": false, | |
"type": "string" | |
} | |
} | |
}, | |
"SubjectSerializer": { | |
"required": [ | |
"full_name" | |
], | |
"id": "SubjectSerializer", | |
"properties": { | |
"full_name": { | |
"description": null, | |
"required": true, | |
"readOnly": false, | |
"$ref": "FullNameSerializer" | |
} | |
} | |
} | |
}, | |
"basePath": "http://127.0.0.1:8000", | |
"resourcePath": "/api", | |
"apiVersion": "" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment