I might be reading this wrong, but it seems that there's no parameter definition, so it's not possible to fill in a ParameterList inline, as it has
items': {'oneOf': [{'$ref': '#/definitions/parameter'},
{'$ref': '#/definitions/jsonReference'}]}
In [137]: dir(openapi.model)
Out[137]:
[...
'Oauth2Scopes',
'Operation',
'ParameterDefinitions',
'ParametersList',
'PathItem',
'PathParameterSubSchema',
...]
Also tried using the PathParameterSubSchema, but that doesn't validate correctly either (where m is openapi.model):
m.ParametersList([m.QueryParameterSubSchema(name='test')]).validate()
ValidationError: {'name': 'test'} is not valid under any of the given schemas
Failed validating 'oneOf' in schema['items']:
{'oneOf': [{'$ref': '#/definitions/parameter'},
{'$ref': '#/definitions/jsonReference'}]}
On instance[0]:
{'name': 'test'}
I might be reading this wrong, but it seems that there's no
parameterdefinition, so it's not possible to fill in aParameterListinline, as it hasAlso tried using the
PathParameterSubSchema, but that doesn't validate correctly either (where m isopenapi.model):