Fix typo (ToJsonSchema)

This commit is contained in:
Isamu Mogi
2019-06-06 22:47:55 +09:00
parent ec644b635a
commit ea689a0fe9
9 changed files with 11 additions and 11 deletions

View File

@@ -412,7 +412,7 @@ namespace UniJSON
f.BeginMap(2);
if (!string.IsNullOrEmpty(Title)) { f.Key("title"); f.Value(Title); }
if (!string.IsNullOrEmpty(Description)) { f.Key("description"); f.Value(Description); }
Validator.ToJsonScheama(f);
Validator.ToJsonSchema(f);
f.EndMap();
}

View File

@@ -69,7 +69,7 @@ namespace UniJSON
/// <returns></returns>
bool FromJsonSchema(IFileSystemAccessor fs, string key, ListTreeNode<JsonValue> value);
void ToJsonScheama(IFormatter f);
void ToJsonSchema(IFormatter f);
#endregion
#region Serializer

View File

@@ -280,7 +280,7 @@ namespace UniJSON
GenericSerializer<T>.Serialize(Items.Validator, f, c, o);
}
public void ToJsonScheama(IFormatter f)
public void ToJsonSchema(IFormatter f)
{
f.Key("type"); f.Value("array");

View File

@@ -27,7 +27,7 @@ namespace UniJSON
return false;
}
public void ToJsonScheama(IFormatter f)
public void ToJsonSchema(IFormatter f)
{
f.Key("type"); f.Value("boolean");
}

View File

@@ -201,7 +201,7 @@ namespace UniJSON
return false;
}
public void ToJsonScheama(IFormatter f)
public void ToJsonSchema(IFormatter f)
{
f.Key("type"); f.Value("object");
}

View File

@@ -196,7 +196,7 @@ namespace UniJSON
throw new NotImplementedException();
}
public void ToJsonScheama(IFormatter f)
public void ToJsonSchema(IFormatter f)
{
f.Key("type"); f.Value("string");
f.Key("enum");
@@ -392,7 +392,7 @@ namespace UniJSON
throw new NotImplementedException();
}
public void ToJsonScheama(IFormatter f)
public void ToJsonSchema(IFormatter f)
{
f.Key("type"); f.Value("integer");
}

View File

@@ -118,7 +118,7 @@ namespace UniJSON
return false;
}
public void ToJsonScheama(IFormatter f)
public void ToJsonSchema(IFormatter f)
{
f.Key("type"); f.Value("integer");
if (Minimum.HasValue)
@@ -326,7 +326,7 @@ namespace UniJSON
return false;
}
public void ToJsonScheama(IFormatter f)
public void ToJsonSchema(IFormatter f)
{
f.Key("type"); f.Value("number");
if (Minimum.HasValue)

View File

@@ -281,7 +281,7 @@ namespace UniJSON
return false;
}
public void ToJsonScheama(IFormatter f)
public void ToJsonSchema(IFormatter f)
{
f.Key("type"); f.Value("object");
if (Properties.Count > 0)

View File

@@ -98,7 +98,7 @@ namespace UniJSON
return false;
}
public void ToJsonScheama(IFormatter f)
public void ToJsonSchema(IFormatter f)
{
f.Key("type"); f.Value("string");
}