Open rochacbruno opened 7 years ago
if data.get('$ref`):
if not data['$ref'].startswith('#/definitions/'):
data['$ref'] = "'#/definitions/{0}'".format(data['$ref'])
At the moment if I do
parameters:
- in: body
schema:
id: SUpload
type: object
properties:
metadata:
schema:
$ref: '#/definitions/UploadMetaProperties'
definitions:
UploadMetaProperties:
type: object
properties:
url:
type: string
format: url
minLength: 2
maxLength: 200
I get the following error when calling validate() Validation error for Unresolvable JSON pointer: 'definitions/UploadMetaProperties' Does that mean $ref is not supported? Is there a work around?
@blazerguns watch your indents. $ref
is on the same indentation level as schema
, but it should be indented relative to schema
.
Currently we need
$ref: '#/definitions/Color'
and we should support$ref: Color
The idea is to support
Internally flasgger should transform
$ref: Color
in to$ref: '#/definitions/Color'
in the json output.