Sha256: aaae201bb42e72eec2709c807f59933eb96d0cc526d5b5a3a2f685dc43790bad
Contents?: true
Size: 547 Bytes
Versions: 22
Compression:
Stored size: 547 Bytes
Contents
using System.ComponentModel.DataAnnotations; using Newtonsoft.Json; namespace Generators.Input { public static class CanonicalDataParser { public static CanonicalData Parse(string exercise) { var canonicalDataJson = CanonicalDataFile.Contents(exercise); var canonicalData = JsonConvert.DeserializeObject<CanonicalData>(canonicalDataJson); Validator.ValidateObject(canonicalData, new ValidationContext(canonicalData)); return canonicalData; } } }
Version data entries
22 entries across 22 versions & 1 rubygems