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.