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

SimpleIdServer.Scim.Swashbuckle error in runtime #54

Closed
boris-meerovich-sp opened this issue Nov 10, 2020 · 2 comments
Closed

SimpleIdServer.Scim.Swashbuckle error in runtime #54

boris-meerovich-sp opened this issue Nov 10, 2020 · 2 comments

Comments

@boris-meerovich-sp
Copy link

In SimpleIdServer.Scim.Swashbuckle\SCIMSchemaGenerator.cs, GenerateReferencedSchema() method, row 176
schema.Properties.Remove(schema.Properties.First(_ => .Key == "Attributes"));
I got exception: System.InvalidOperationException: 'Sequence contains no matching element'
for schema.Properties.First( => _.Key == "Attributes") row.
Any of my schemas contain Attributes in Properties.

I mentioned it already in #53 (comment)

Occurring in version 1.1.8

My solution is to call FirstOrDefault instead of First.

thabart added a commit that referenced this issue Nov 10, 2020
@simpleidserver
Copy link
Owner

The issue is fixed in the master, First operation has been replaced by FirstOrDefault.

@boris-meerovich-sp
Copy link
Author

Thanks!!!
I will work on the master for a while...

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

2 participants