Skip to content

Commit

Permalink
Sanitize class names
Browse files Browse the repository at this point in the history
  • Loading branch information
Liu, Shabai authored and Liu, Shabai committed Aug 6, 2014
1 parent 4881b9c commit d3cde27
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion Source/Cvent.SchemaToPoco.Core/JsonSchemaToPoco.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.CodeDom;
using System.Collections.Generic;
using Cvent.SchemaToPoco.Console;
using Cvent.SchemaToPoco.Core.CodeToLanguage;
using Cvent.SchemaToPoco.Core.Types;
using Cvent.SchemaToPoco.Core.Util;
Expand Down
1 change: 0 additions & 1 deletion Source/Cvent.SchemaToPoco.Core/Types/NamespaceWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ public NamespaceWrapper(CodeNamespace ns)
public void AddImport(string import)
{
Namespace.Imports.Add(new CodeNamespaceImport(import));

}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ private JsonSchemaWrapper ResolveSchemaHelper(Uri parent, Uri current)
// Set up schema and wrapper to return
JsonSchema parsed = JsonSchema.Parse(StandardizeReferences(parent, data), _resolver);
parsed.Id = uri.ToString();
parsed.Title = parsed.Title.SanitizeIdentifier();
var toReturn = new JsonSchemaWrapper(parsed) {Namespace = _ns, Dependencies = dependencies};

// If csharpType is specified
Expand Down

0 comments on commit d3cde27

Please sign in to comment.