private static string GetRelativeSchemaPath()

in tools/DeploymentsSchemaTests/TestSchemaCache.cs [77:86]


        private static string GetRelativeSchemaPath(string schemaId)
        {
            var schemaUri = new Uri(new Uri(schemaId).GetLeftPart(UriPartial.Path));
            if (!SchemaBaseUri.IsBaseOf(schemaUri))
            {
                throw new ArgumentException($"Unable to process schema {schemaUri}");
            }

            return SchemaBaseUri.MakeRelativeUri(schemaUri).ToString();
        }