Skip to content
Draft
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
822 changes: 822 additions & 0 deletions enhanced_features_guide.md

Large diffs are not rendered by default.

69 changes: 69 additions & 0 deletions examples/example_postman_collection.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"info": {
"name": "JSONPlaceholder API Tests",
"description": "Test collection for JSONPlaceholder API"
},
"variable": [
{
"key": "baseUrl",
"value": "https://jsonplaceholder.typicode.com"
}
],
"item": [
{
"name": "Get All Users",
"request": {
"method": "GET",
"url": {
"raw": "{{baseUrl}}/users",
"host": ["{{baseUrl}}"],
"path": ["users"]
},
"header": [
{
"key": "Accept",
"value": "application/json"
}
]
}
},
{
"name": "Get User by ID",
"request": {
"method": "GET",
"url": {
"raw": "{{baseUrl}}/users/1",
"host": ["{{baseUrl}}"],
"path": ["users", "1"]
},
"header": [
{
"key": "Accept",
"value": "application/json"
}
]
}
},
{
"name": "Create User",
"request": {
"method": "POST",
"url": {
"raw": "{{baseUrl}}/users",
"host": ["{{baseUrl}}"],
"path": ["users"]
},
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\"name\": \"Test User\", \"username\": \"testuser\", \"email\": \"test@example.com\"}"
}
}
}
]
}
54 changes: 54 additions & 0 deletions examples/example_workflow.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"name": "example_workflow",
"version": "1.0",
"description": "Example workflow for testing JsonAI enhancements",
"variables": {
"api_base_url": "https://jsonplaceholder.typicode.com",
"environment": "test"
},
"steps": [
{
"id": "generate_user_data",
"name": "Generate Test User Data",
"type": "json_generation",
"config": {
"schema": {
"type": "object",
"properties": {
"name": {"type": "string"},
"username": {"type": "string"},
"email": {"type": "string", "format": "email"},
"phone": {"type": "string"},
"website": {"type": "string"}
},
"required": ["name", "username", "email"]
},
"prompt": "Generate a realistic user profile for API testing",
"output_variable": "test_user_data"
}
},
{
"id": "validate_user_data",
"name": "Validate Generated User Data",
"type": "data_validation",
"depends_on": ["generate_user_data"],
"config": {
"data_variable": "test_user_data",
"schema": {
"type": "object",
"properties": {
"name": {"type": "string"},
"email": {"type": "string", "format": "email"}
},
"required": ["name", "email"]
},
"fail_on_invalid": false
}
}
],
"error_handling": {
"retry_count": 2,
"timeout": 60,
"on_failure": "continue"
}
}
52 changes: 52 additions & 0 deletions examples/user_schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"type": "object",
"properties": {
"id": {
"type": "integer",
"minimum": 1
},
"name": {
"type": "string",
"minLength": 1
},
"username": {
"type": "string",
"minLength": 1
},
"email": {
"type": "string",
"format": "email"
},
"address": {
"type": "object",
"properties": {
"street": {"type": "string"},
"suite": {"type": "string"},
"city": {"type": "string"},
"zipcode": {"type": "string"},
"geo": {
"type": "object",
"properties": {
"lat": {"type": "string"},
"lng": {"type": "string"}
}
}
}
},
"phone": {
"type": "string"
},
"website": {
"type": "string"
},
"company": {
"type": "object",
"properties": {
"name": {"type": "string"},
"catchPhrase": {"type": "string"},
"bs": {"type": "string"}
}
}
},
"required": ["name", "username", "email"]
}
Loading