(mut env: JNIEnv<'a>, _: JClass, schema_jstr: JString<'a>)
| 554 | /// public string-based JSON interface to parse a schema in Cedar's cedar-readable format |
| 555 | #[jni_fn("com.cedarpolicy.model.schema.Schema")] |
| 556 | pub fn parseCedarSchemaJni<'a>(mut env: JNIEnv<'a>, _: JClass, schema_jstr: JString<'a>) -> jvalue { |
| 557 | match parse_cedar_schema_internal(&mut env, schema_jstr) { |
| 558 | Ok(v) => v.as_jni(), |
| 559 | Err(e) => jni_failed(&mut env, e.as_ref()), |
| 560 | } |
| 561 | } |
| 562 | |
| 563 | fn parse_json_schema_internal<'a>( |
| 564 | env: &mut JNIEnv<'a>, |
nothing calls this directly
no test coverage detected