Skip to content

Commit

Permalink
Get ready for release
Browse files Browse the repository at this point in the history
  • Loading branch information
Liu, Shabai authored and Liu, Shabai committed Aug 12, 2014
1 parent f0b7def commit 61bd457
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 16 deletions.
4 changes: 2 additions & 2 deletions Source/Cvent.SchemaToPoco.Console/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: Guid("d81b81d4-c2b9-4c31-b372-bd2c23fd7191")]
[assembly: AssemblyVersion("1.1.*")]
[assembly: AssemblyFileVersion("1.1.*")]
[assembly: AssemblyVersion("1.2.*")]
[assembly: AssemblyFileVersion("1.2.*")]
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("1.1.*")]
[assembly: AssemblyFileVersion("1.1.*")]
[assembly: AssemblyVersion("1.2.*")]
[assembly: AssemblyFileVersion("1.2.*")]
4 changes: 2 additions & 2 deletions Source/Cvent.SchemaToPoco.Core/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("1.1.*")]
[assembly: AssemblyFileVersion("1.1.*")]
[assembly: AssemblyVersion("1.2.*")]
[assembly: AssemblyFileVersion("1.2.*")]
10 changes: 2 additions & 8 deletions Source/Cvent.SchemaToPoco.Core/Util/JsonSchemaResolverUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,15 +147,9 @@ private JsonSchemaWrapper ResolveSchemaHelper(Uri curr, Uri parent, string data)
var isProp = prop.Name.Equals("properties");
var isItem = prop.Name.Equals("items");

if (isProp || isItem)
// TODO ehhhh let's avoid hardcoding this
if (isProp || (isItem && prop.Value.ToString().Contains("\"properties\"")))
{
// If it's an array, also check that it needs to be created
// TODO ehhhh let's avoid hardcoding this
if (isItem && !prop.Value.ToString().Contains("\"properties\""))
{
break;
}

var propData = isProp ? s.Value.ToString() : prop.Value.ToString();

// Create dummy internal Uri
Expand Down
4 changes: 2 additions & 2 deletions Source/Test/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("1.1.*")]
[assembly: AssemblyFileVersion("1.1.*")]
[assembly: AssemblyVersion("1.2.*")]
[assembly: AssemblyFileVersion("1.2.*")]

0 comments on commit 61bd457

Please sign in to comment.