(mut env: JNIEnv<'a>, _: JClass, schema_jstr: JString<'a>)
| 545 | /// Public string-based JSON interface to parse a schema in Cedar's JSON format |
| 546 | #[jni_fn("com.cedarpolicy.model.schema.Schema")] |
| 547 | pub fn parseJsonSchemaJni<'a>(mut env: JNIEnv<'a>, _: JClass, schema_jstr: JString<'a>) -> jvalue { |
| 548 | match parse_json_schema_internal(&mut env, schema_jstr) { |
| 549 | Ok(v) => v.as_jni(), |
| 550 | Err(e) => jni_failed(&mut env, e.as_ref()), |
| 551 | } |
| 552 | } |
| 553 | |
| 554 | /// public string-based JSON interface to parse a schema in Cedar's cedar-readable format |
| 555 | #[jni_fn("com.cedarpolicy.model.schema.Schema")] |
nothing calls this directly
no test coverage detected