getSubMapFromFragment static method

JsonSchema getSubMapFromFragment(
  1. JsonSchema schema,
  2. Uri uri
)

Implementation

static JsonSchema getSubMapFromFragment(JsonSchema schema, Uri uri) {
  if (uri.fragment.isNotEmpty == true) {
    schema = schema.resolvePath('#${uri.fragment}');
  }
  return schema;
}