Skip to content

No Parameter definition #10

@RickyCook

Description

@RickyCook

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'}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions