Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SecurityDefinitions missing "Ixed" and "At" type-class instances #77

Open
arjunkathuria opened this issue Jan 9, 2023 · 0 comments
Open

Comments

@arjunkathuria
Copy link

arjunkathuria commented Jan 9, 2023

Hi,

The SecurityDefinitions type defined in the OpenAPI library here

Which is a newtype wrapper over Definitions, which in-turn is a type synonym for an InsOrdHashMap Text type.

SecurityDefinitions seems to be missing type-class instances for Ixed and At type-classes, which enables us to use them with Lenses and refer to their indices using at or ix and set a particular SecurityScheme at that index if needed.

The following instances are already present in the Swagger version of the same data-type here.

Opening the issue in addition to #76 here, I'll make a PR soon for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant