Skip to content

Commit

Permalink
fix: fix unit-test testdata pet.json
Browse files Browse the repository at this point in the history
  • Loading branch information
gouhuan committed Apr 2, 2024
1 parent f9c616c commit 461cd28
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions testdata/pet.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
{
"swag.MapObj": {
"swag.MapObj": {
"github.com_zc2638_swag.MapObj": {
"type": "object",
"properties": {
"rule_options": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/swag.MapOption"
"$ref": "#/definitions/github.com_zc2638_swag.MapOption"
}
}
}
},
"swag.MapOption": {
"github.com_zc2638_swag.MapOption": {
"type": "object",
"properties": {
"match_src": {
Expand All @@ -29,7 +28,7 @@
"sub_options": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/swag.MapOption"
"$ref": "#/definitions/github.com_zc2638_swag.MapOption"
}
},
"values": {
Expand All @@ -40,7 +39,7 @@
}
}
},
"swag.Person": {
"github.com_zc2638_swag.Person": {
"type": "object",
"properties": {
"First": {
Expand Down Expand Up @@ -123,7 +122,7 @@
"additionalProperties": {
"type": "array",
"items": {
"$ref": "#/definitions/swag.Person"
"$ref": "#/definitions/github.com_zc2638_swag.Person"
}
}
},
Expand All @@ -132,7 +131,7 @@
"additionalProperties": {
"type": "array",
"items": {
"$ref": "#/definitions/swag.Person"
"$ref": "#/definitions/github.com_zc2638_swag.Person"
}
}
},
Expand All @@ -151,13 +150,13 @@
"SliceStruct": {
"type": "array",
"items": {
"$ref": "#/definitions/swag.Person"
"$ref": "#/definitions/github.com_zc2638_swag.Person"
}
},
"SliceStructPtr": {
"type": "array",
"items": {
"$ref": "#/definitions/swag.Person"
"$ref": "#/definitions/github.com_zc2638_swag.Person"
}
},
"String": {
Expand All @@ -183,7 +182,7 @@
},
"friend": {
"description": "description short expression",
"$ref": "#/definitions/swag.Person"
"$ref": "#/definitions/github.com_zc2638_swag.Person"
},
"friends": {
"type": "array",
Expand All @@ -193,7 +192,7 @@
}
},
"map_nest_options": {
"$ref": "#/definitions/swag.MapObj"
"$ref": "#/definitions/github.com_zc2638_swag.MapObj"
},
"pointer": {
"$ref": "#/definitions/github.com_zc2638_swag.Person"
Expand Down

0 comments on commit 461cd28

Please sign in to comment.