Closed justend29 closed 2 months ago
whoever created the CI job to not only indicate exactly where the lining error is, but also generate a patch file and sample commands to apply it deserves a gold star.
also generate a patch file and sample commands to apply it deserves a gold star.
⭐ appreciate it 🙏
It would be amazing to have a test to help ensure this behavior is maintained :)
Similar to
But just check the list empty (you might need to usenthe itors to count)
@prince-chrismc I shouldn't have made the PR w/o a test. It's in.
I appreciate the design to always uphold the invariants of every type. For
jwt::jwks
, which is an object holding a collection of jwks, constructing an empty collection of jwks is valid and maintains the invariants of the type. The motivation for this is encapsulatingjwt::jwks
in a caching class, where JWKs are often cached with periodic refreshing. There aren't any keys until fetched from issuer. I found myself doingjwt::jwks{"{\"keys\":[]}"}
since there wasn't a default constructor, which feels silly.