Skip to content

Conversation

andrewheard
Copy link
Contributor

Replaced the CustomStringConvertible extensions on HarmCategory and HarmProbability in the sample app with custom displayValue properties. This fixes the warning Extension declares a conformance of imported type 'HarmCategory' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'FirebaseVertexAI' introduce this conformance in the future.

As the warning describes, this also allows us to customize the description in the SDK by conforming to CustomStringConvertible for those types.

#no-changelog

@andrewheard andrewheard merged commit 289a1b9 into main Oct 8, 2024
40 checks passed
@andrewheard andrewheard deleted the ah/vertex-errordetailsview branch October 8, 2024 21:49
MojtabaHs pushed a commit to MojtabaHs/firebase-ios-sdk that referenced this pull request Oct 17, 2024
@firebase firebase locked and limited conversation to collaborators Nov 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants