Skip to content

Fetching API docs occasionally fails at starlette framework with KeyError where OpenAPI spec generation bases on starlette-jsonapi #45

@creativecodemind

Description

@creativecodemind

Seems as if parameter called fields reaches starlette_jsonapi.openapi.JSONAPISchemaConverter.fields2jsonschema() method with randomly ordered keys and the fail in logic applied to the iteration over the keys the parameter called fields of data type dictionary bears doesn't consider running into KeyError when accessing key called attributes.
Could you please fix this to avoid running into KeyError? As this ends in 500 response status code this decreases the quality of my API. Would be glad if you could provide a patch release to get rid of it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions