/// <summary> /// Searches a JSON schema for other schemas that can be used for code generation. /// </summary> /// <param name="jsonSchema">The schema.</param> /// <returns>A list of schemas that can be used for code generation.</returns> public static IEnumerable<TypeSchema> ResolveCodeGeneratingSchemas(string jsonSchema) { if (string.IsNullOrEmpty(jsonSchema)) { throw new ArgumentException( string.Format(CultureInfo.InvariantCulture, "Empty schema can not be used for code generation.")); } var rootSchema = new JsonSchemaBuilder().BuildSchema(Utilities.RemoveComments(jsonSchema)); return ResolveCodeGeneratingSchemas(rootSchema); }
public void TestTeardown() { this.builder = null; }
public void TestSetup() { this.builder = new JsonSchemaBuilder(); }