Skip to content

Commit

Permalink
fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Oct 29, 2022
1 parent 1a3c776 commit 3c1b346
Show file tree
Hide file tree
Showing 116 changed files with 1,599 additions and 1,588 deletions.
12 changes: 6 additions & 6 deletions tests/Backend/Api/Account/resource/account.json
Expand Up @@ -26,7 +26,7 @@
"tags": [
"backend.account"
],
"request": "Backend_User_Update",
"request": "Backend_UserUpdate",
"responses": {
"200": "Message"
}
Expand Down Expand Up @@ -77,12 +77,12 @@
"tokens": {
"type": "array",
"items": {
"$ref": "App_Token"
"$ref": "AppToken"
}
}
}
},
"App_Token": {
"AppToken": {
"type": "object",
"properties": {
"id": {
Expand Down Expand Up @@ -116,8 +116,8 @@
"Backend_User": {
"$ref": "User"
},
"Backend_User_Update": {
"$ref": "User_Update"
"Backend_UserUpdate": {
"$ref": "UserUpdate"
},
"Message": {
"type": "object",
Expand Down Expand Up @@ -182,7 +182,7 @@
}
}
},
"User_Update": {
"UserUpdate": {
"$extends": "User",
"type": "object"
}
Expand Down
8 changes: 4 additions & 4 deletions tests/Backend/Api/Account/resource/change_password.json
Expand Up @@ -12,14 +12,14 @@
"tags": [
"backend.account"
],
"request": "Backend_Account_ChangePassword",
"request": "Backend_AccountChangePassword",
"responses": {
"200": "Message"
}
}
},
"definitions": {
"Account_ChangePassword": {
"AccountChangePassword": {
"type": "object",
"properties": {
"oldPassword": {
Expand All @@ -39,8 +39,8 @@
}
}
},
"Backend_Account_ChangePassword": {
"$ref": "Account_ChangePassword"
"Backend_AccountChangePassword": {
"$ref": "AccountChangePassword"
},
"Message": {
"type": "object",
Expand Down
28 changes: 14 additions & 14 deletions tests/Backend/Api/Action/resource/collection.json
Expand Up @@ -12,9 +12,9 @@
"tags": [
"backend.action"
],
"queryParameters": "Collection_Category_Query",
"queryParameters": "CollectionCategoryQuery",
"responses": {
"200": "Backend_Action_Collection"
"200": "Backend_ActionCollection"
}
},
"POST": {
Expand All @@ -27,7 +27,7 @@
"tags": [
"backend.action"
],
"request": "Backend_Action_Create",
"request": "Backend_ActionCreate",
"responses": {
"201": "Message"
}
Expand Down Expand Up @@ -57,37 +57,37 @@
"type": "string"
},
"config": {
"$ref": "Action_Config"
"$ref": "ActionConfig"
},
"metadata": {
"$ref": "Metadata"
}
}
},
"Action_Collection": {
"ActionCollection": {
"$ref": "Collection",
"$template": {
"T": "Action"
}
},
"Action_Config": {
"ActionConfig": {
"type": "object",
"additionalProperties": {
"type": "any"
}
},
"Action_Create": {
"ActionCreate": {
"$extends": "Action",
"type": "object",
"required": [
"name"
]
},
"Backend_Action_Collection": {
"$ref": "Action_Collection"
"Backend_ActionCollection": {
"$ref": "ActionCollection"
},
"Backend_Action_Create": {
"$ref": "Action_Create"
"Backend_ActionCreate": {
"$ref": "ActionCreate"
},
"Collection": {
"type": "object",
Expand All @@ -109,16 +109,16 @@
}
}
},
"Collection_Category_Query": {
"$extends": "Collection_Query",
"CollectionCategoryQuery": {
"$extends": "CollectionQuery",
"type": "object",
"properties": {
"categoryId": {
"type": "integer"
}
}
},
"Collection_Query": {
"CollectionQuery": {
"type": "object",
"properties": {
"startIndex": {
Expand Down
12 changes: 6 additions & 6 deletions tests/Backend/Api/Action/resource/entity.json
Expand Up @@ -27,7 +27,7 @@
"tags": [
"backend.action"
],
"request": "Backend_Action_Update",
"request": "Backend_ActionUpdate",
"responses": {
"200": "Message"
}
Expand Down Expand Up @@ -71,20 +71,20 @@
"type": "string"
},
"config": {
"$ref": "Action_Config"
"$ref": "ActionConfig"
},
"metadata": {
"$ref": "Metadata"
}
}
},
"Action_Config": {
"ActionConfig": {
"type": "object",
"additionalProperties": {
"type": "any"
}
},
"Action_Update": {
"ActionUpdate": {
"$extends": "Action",
"type": "object"
},
Expand All @@ -99,8 +99,8 @@
"Backend_Action": {
"$ref": "Action"
},
"Backend_Action_Update": {
"$ref": "Action_Update"
"Backend_ActionUpdate": {
"$ref": "ActionUpdate"
},
"Message": {
"type": "object",
Expand Down
28 changes: 14 additions & 14 deletions tests/Backend/Api/Action/resource/execute.json
Expand Up @@ -13,14 +13,14 @@
"tags": [
"backend.action"
],
"request": "Backend_Action_Execute_Request",
"request": "Backend_ActionExecuteRequest",
"responses": {
"200": "Backend_Action_Execute_Response"
"200": "Backend_ActionExecuteResponse"
}
}
},
"definitions": {
"Action_Execute_Request": {
"ActionExecuteRequest": {
"type": "object",
"properties": {
"method": {
Expand All @@ -37,40 +37,40 @@
"type": "string"
},
"body": {
"$ref": "Action_Execute_Request_Body"
"$ref": "ActionExecuteRequestBody"
}
},
"required": [
"method"
]
},
"Action_Execute_Request_Body": {
"ActionExecuteRequestBody": {
"type": "object",
"additionalProperties": {
"type": "any"
}
},
"Action_Execute_Response": {
"ActionExecuteResponse": {
"type": "object",
"properties": {
"statusCode": {
"type": "integer"
},
"headers": {
"$ref": "Action_Execute_Response_Headers"
"$ref": "ActionExecuteResponseHeaders"
},
"body": {
"$ref": "Action_Execute_Response_Body"
"$ref": "ActionExecuteResponseBody"
}
}
},
"Action_Execute_Response_Body": {
"ActionExecuteResponseBody": {
"type": "object",
"additionalProperties": {
"type": "any"
}
},
"Action_Execute_Response_Headers": {
"ActionExecuteResponseHeaders": {
"type": "object",
"additionalProperties": {
"type": "string"
Expand All @@ -84,11 +84,11 @@
}
}
},
"Backend_Action_Execute_Request": {
"$ref": "Action_Execute_Request"
"Backend_ActionExecuteRequest": {
"$ref": "ActionExecuteRequest"
},
"Backend_Action_Execute_Response": {
"$ref": "Action_Execute_Response"
"Backend_ActionExecuteResponse": {
"$ref": "ActionExecuteResponse"
}
}
}
38 changes: 19 additions & 19 deletions tests/Backend/Api/Action/resource/form.json
Expand Up @@ -12,38 +12,38 @@
"tags": [
"backend.action"
],
"queryParameters": "Form_Query",
"queryParameters": "FormQuery",
"responses": {
"200": "Form_Container"
"200": "FormContainer"
}
}
},
"definitions": {
"Form_Container": {
"FormContainer": {
"type": "object",
"properties": {
"element": {
"type": "array",
"items": {
"oneOf": [
{
"$ref": "Form_Element_Input"
"$ref": "FormElementInput"
},
{
"$ref": "Form_Element_Select"
"$ref": "FormElementSelect"
},
{
"$ref": "Form_Element_Tag"
"$ref": "FormElementTag"
},
{
"$ref": "Form_Element_TextArea"
"$ref": "FormElementTextArea"
}
]
}
}
}
},
"Form_Element": {
"FormElement": {
"type": "object",
"properties": {
"element": {
Expand All @@ -63,28 +63,28 @@
"element"
]
},
"Form_Element_Input": {
"$extends": "Form_Element",
"FormElementInput": {
"$extends": "FormElement",
"type": "object",
"properties": {
"type": {
"type": "string"
}
}
},
"Form_Element_Select": {
"$extends": "Form_Element",
"FormElementSelect": {
"$extends": "FormElement",
"type": "object",
"properties": {
"options": {
"type": "array",
"items": {
"$ref": "Form_Element_Select_Option"
"$ref": "FormElementSelectOption"
}
}
}
},
"Form_Element_Select_Option": {
"FormElementSelectOption": {
"type": "object",
"properties": {
"key": {
Expand All @@ -95,20 +95,20 @@
}
}
},
"Form_Element_Tag": {
"$extends": "Form_Element",
"FormElementTag": {
"$extends": "FormElement",
"type": "object"
},
"Form_Element_TextArea": {
"$extends": "Form_Element",
"FormElementTextArea": {
"$extends": "FormElement",
"type": "object",
"properties": {
"mode": {
"type": "string"
}
}
},
"Form_Query": {
"FormQuery": {
"type": "object",
"properties": {
"class": {
Expand Down

0 comments on commit 3c1b346

Please sign in to comment.