-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
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'}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels