Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public override bool IsVisitable(Type type)
/// <inheritdoc />
public override void Visit(IAcceptor acceptor, KeyValuePair<string, Type> type, NamingStrategy namingStrategy, params Attribute[] attributes)
{
this.Visit(acceptor, name: type.Key, title: null, dataType: "integer", dataFormat: null, attributes: attributes);
this.Visit(acceptor, name: type.Key, title: null, dataType: "integer", dataFormat: "int32", attributes: attributes);
}

/// <inheritdoc />
Expand All @@ -46,7 +46,7 @@ public override bool IsParameterVisitable(Type type)
/// <inheritdoc />
public override OpenApiSchema ParameterVisit(Type type, NamingStrategy namingStrategy)
{
return this.ParameterVisit(dataType: "integer", dataFormat: null);
return this.ParameterVisit(dataType: "integer", dataFormat: "int32");
}

/// <inheritdoc />
Expand All @@ -60,7 +60,7 @@ public override bool IsPayloadVisitable(Type type)
/// <inheritdoc />
public override OpenApiSchema PayloadVisit(Type type, NamingStrategy namingStrategy)
{
return this.PayloadVisit(dataType: "integer", dataFormat: null);
return this.PayloadVisit(dataType: "integer", dataFormat: "int32");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void Given_Type_When_IsPayloadVisitable_Invoked_Then_It_Should_Return_Res
}

[DataTestMethod]
[DataRow("integer", null)]
[DataRow("integer", "int32")]
public void Given_Type_When_Visit_Invoked_Then_It_Should_Return_Result(string dataType, string dataFormat)
{
var name = "hello";
Expand Down Expand Up @@ -204,7 +204,7 @@ public void Given_OpenApiSchemaVisibilityAttribute_When_Visit_Invoked_Then_It_Sh
}

[DataTestMethod]
[DataRow("integer", null)]
[DataRow("integer", "int32")]
public void Given_Type_When_ParameterVisit_Invoked_Then_It_Should_Return_Result(string dataType, string dataFormat)
{
var result = this._visitor.ParameterVisit(typeof(uint), this._strategy);
Expand All @@ -214,7 +214,7 @@ public void Given_Type_When_ParameterVisit_Invoked_Then_It_Should_Return_Result(
}

[DataTestMethod]
[DataRow("integer", null)]
[DataRow("integer", "int32")]
public void Given_Type_When_PayloadVisit_Invoked_Then_It_Should_Return_Result(string dataType, string dataFormat)
{
var result = this._visitor.PayloadVisit(typeof(uint), this._strategy);
Expand Down