Skip to content

Commit

Permalink
chore: Fix formatting for new tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vipentti committed Dec 24, 2024
1 parent fbb1b11 commit 5094aaa
Showing 1 changed file with 124 additions and 62 deletions.
186 changes: 124 additions & 62 deletions tests/Kiota.Builder.Tests/Extensions/OpenApiSchemaExtensionsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -682,20 +682,28 @@ public void DoesMergeWithInheritance()
var schema = new OpenApiSchema()
{
Type = "object",
AnyOf = [
new() {
Properties = new Dictionary<string, OpenApiSchema>() {
AnyOf =
[
new()
{
Properties = new Dictionary<string, OpenApiSchema>()
{
["one"] = new OpenApiSchema(),
},
AllOf = [
new() {
Reference = new() {
AllOf =
[
new()
{
Reference = new()
{
Id = "BaseClass"
},
},
new() {
new()
{
Type = "object",
Properties = new Dictionary<string, OpenApiSchema>() {
Properties = new Dictionary<string, OpenApiSchema>()
{
["firstName"] = new OpenApiSchema(),
["lastName"] = new OpenApiSchema()
}
Expand All @@ -719,27 +727,37 @@ public void DoesMergeWithIntersection()
var schema = new OpenApiSchema()
{
Type = "object",
AnyOf = [
new() {
Properties = new Dictionary<string, OpenApiSchema>() {
AnyOf =
[
new()
{
Properties = new Dictionary<string, OpenApiSchema>()
{
["one"] = new OpenApiSchema(),
},
AllOf = [
new() {
AllOf =
[
new()
{
Type = "object",
Properties = new Dictionary<string, OpenApiSchema>() {
Properties = new Dictionary<string, OpenApiSchema>()
{
["first"] = new OpenApiSchema(),
}
},
new() {
new()
{
Type = "object",
Properties = new Dictionary<string, OpenApiSchema>() {
Properties = new Dictionary<string, OpenApiSchema>()
{
["second"] = new OpenApiSchema(),
}
},
new() {
new()
{
Type = "object",
Properties = new Dictionary<string, OpenApiSchema>() {
Properties = new Dictionary<string, OpenApiSchema>()
{
["third"] = new OpenApiSchema(),
}
},
Expand All @@ -762,20 +780,28 @@ public void DoesNotMergeWithMoreThanOneInclusiveEntry()
var schema = new OpenApiSchema()
{
Type = "object",
AnyOf = [
new() {
Properties = new Dictionary<string, OpenApiSchema>() {
AnyOf =
[
new()
{
Properties = new Dictionary<string, OpenApiSchema>()
{
["one"] = new OpenApiSchema(),
},
AllOf = [
new() {
Reference = new() {
AllOf =
[
new()
{
Reference = new()
{
Id = "BaseClass"
},
},
new() {
new()
{
Type = "object",
Properties = new Dictionary<string, OpenApiSchema>() {
Properties = new Dictionary<string, OpenApiSchema>()
{
["firstName"] = new OpenApiSchema(),
["lastName"] = new OpenApiSchema()
}
Expand All @@ -795,12 +821,17 @@ public void DoesNotMergeWithoutInheritanceOrIntersection()
var schema = new OpenApiSchema()
{
Type = "object",
AnyOf = [
new() {
AllOf = [
new() {
AnyOf =
[
new()
{
AllOf =
[
new()
{
Type = "object",
Properties = new Dictionary<string, OpenApiSchema>() {
Properties = new Dictionary<string, OpenApiSchema>()
{
["firstName"] = new OpenApiSchema(),
["lastName"] = new OpenApiSchema()
}
Expand All @@ -823,20 +854,28 @@ public void DoesMergeWithInheritance()
var schema = new OpenApiSchema()
{
Type = "object",
OneOf = [
new() {
Properties = new Dictionary<string, OpenApiSchema>() {
OneOf =
[
new()
{
Properties = new Dictionary<string, OpenApiSchema>()
{
["one"] = new OpenApiSchema(),
},
AllOf = [
new() {
Reference = new() {
AllOf =
[
new()
{
Reference = new()
{
Id = "BaseClass"
},
},
new() {
new()
{
Type = "object",
Properties = new Dictionary<string, OpenApiSchema>() {
Properties = new Dictionary<string, OpenApiSchema>()
{
["firstName"] = new OpenApiSchema(),
["lastName"] = new OpenApiSchema()
}
Expand All @@ -860,27 +899,37 @@ public void DoesMergeWithIntersection()
var schema = new OpenApiSchema()
{
Type = "object",
OneOf = [
new() {
Properties = new Dictionary<string, OpenApiSchema>() {
OneOf =
[
new()
{
Properties = new Dictionary<string, OpenApiSchema>()
{
["one"] = new OpenApiSchema(),
},
AllOf = [
new() {
AllOf =
[
new()
{
Type = "object",
Properties = new Dictionary<string, OpenApiSchema>() {
Properties = new Dictionary<string, OpenApiSchema>()
{
["first"] = new OpenApiSchema(),
}
},
new() {
new()
{
Type = "object",
Properties = new Dictionary<string, OpenApiSchema>() {
Properties = new Dictionary<string, OpenApiSchema>()
{
["second"] = new OpenApiSchema(),
}
},
new() {
new()
{
Type = "object",
Properties = new Dictionary<string, OpenApiSchema>() {
Properties = new Dictionary<string, OpenApiSchema>()
{
["third"] = new OpenApiSchema(),
}
},
Expand All @@ -903,20 +952,28 @@ public void DoesNotMergeWithMoreThanOneExclusiveEntry()
var schema = new OpenApiSchema()
{
Type = "object",
OneOf = [
new() {
Properties = new Dictionary<string, OpenApiSchema>() {
OneOf =
[
new()
{
Properties = new Dictionary<string, OpenApiSchema>()
{
["one"] = new OpenApiSchema(),
},
AllOf = [
new() {
Reference = new() {
AllOf =
[
new()
{
Reference = new()
{
Id = "BaseClass"
},
},
new() {
new()
{
Type = "object",
Properties = new Dictionary<string, OpenApiSchema>() {
Properties = new Dictionary<string, OpenApiSchema>()
{
["firstName"] = new OpenApiSchema(),
["lastName"] = new OpenApiSchema()
}
Expand All @@ -936,12 +993,17 @@ public void DoesNotMergeWithoutInheritanceOrIntersection()
var schema = new OpenApiSchema()
{
Type = "object",
OneOf = [
new() {
AllOf = [
new() {
OneOf =
[
new()
{
AllOf =
[
new()
{
Type = "object",
Properties = new Dictionary<string, OpenApiSchema>() {
Properties = new Dictionary<string, OpenApiSchema>()
{
["firstName"] = new OpenApiSchema(),
["lastName"] = new OpenApiSchema()
}
Expand Down

0 comments on commit 5094aaa

Please sign in to comment.