We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a5b6be commit bf85ad1Copy full SHA for bf85ad1
clients/osv/src/main/kotlin/OsvService.kt
@@ -52,7 +52,10 @@ interface OsvService {
52
/** The URL of the staging server. */
53
const val STAGING_SERVER_URL = "https://api-staging.osv.dev"
54
55
- val JSON = Json { namingStrategy = JsonNamingStrategy.SnakeCase }
+ val JSON = Json {
56
+ namingStrategy = JsonNamingStrategy.SnakeCase
57
+ ignoreUnknownKeys = true
58
+ }
59
60
fun create(serverUrl: String? = null, client: OkHttpClient? = null): OsvService {
61
val converterFactory = JSON.asConverterFactory(contentType = "application/json".toMediaType())
0 commit comments