{
"case": {
"Name": "create_scalar",
"Method": "POST",
"Path": "/api/posts",
"Body": "42"
},
"status": 422,
"headers": {
"Content-Type": "application/json; charset=utf-8",
"Cross-Origin-Opener-Policy": "same-origin",
"Referrer-Policy": "same-origin",
"X-Content-Type-Options": "nosniff",
"X-Frame-Options": "DENY"
},
"body": {
"detail": [
{
"loc": [
"body",
"payload",
"author_id"
],
"msg": "Field required",
"type": "missing"
},
{
"loc": [
"body",
"payload",
"title"
],
"msg": "Field required",
"type": "missing"
},
{
"loc": [
"body",
"payload",
"body"
],
"msg": "Field required",
"type": "missing"
}
]
},
"state": {
"blog_comment": [
{
"author_id": 1,
"body": "Second café",
"created_at": "2024-02-01T00:00:00Z",
"id": 2,
"post_id": 1
},
{
"author_id": 2,
"body": "First",
"created_at": "2024-02-01T00:00:00Z",
"id": 1,
"post_id": 1
},
{
"author_id": 3,
"body": "Draft comment",
"created_at": "2024-02-02T00:00:00Z",
"id": 3,
"post_id": 2
}
],
"blog_comment_sequence": {
"is_called": true,
"last_value": 3
},
"blog_post": [
{
"author_id": 1,
"body": "A body with 100% and under_score and café",
"created_at": "2024-01-01T00:00:00Z",
"id": 1,
"is_published": true,
"title": "Hello Python",
"updated_at": "2024-01-01T00:00:00Z",
"view_count": 7
},
{
"author_id": 1,
"body": "python hidden",
"created_at": "2024-01-02T00:00:00Z",
"id": 2,
"is_published": false,
"title": "Secret draft",
"updated_at": "2024-01-02T00:00:00Z",
"view_count": 0
},
{
"author_id": 2,
"body": "PYTHON and backslash \\\\",
"created_at": "2024-01-03T00:00:00Z",
"id": 3,
"is_published": true,
"title": "Unicode café 🚀",
"updated_at": "2024-01-03T00:00:00Z",
"view_count": 2
},
{
"author_id": 3,
"body": "unrelated content",
"created_at": "2024-01-03T00:00:00Z",
"id": 4,
"is_published": true,
"title": "Tied date",
"updated_at": "2024-01-03T00:00:00Z",
"view_count": 0
}
],
"blog_post_sequence": {
"is_called": true,
"last_value": 4
},
"blog_post_tags": [
{
"id": 1,
"post_id": 1,
"tag_id": 2
},
{
"id": 2,
"post_id": 1,
"tag_id": 1
},
{
"id": 3,
"post_id": 2,
"tag_id": 1
},
{
"id": 4,
"post_id": 3,
"tag_id": 1
}
],
"blog_post_tags_sequence": {
"is_called": true,
"last_value": 4
},
"blog_tag": [
{
"created_at": "2024-01-01T00:00:00Z",
"id": 1,
"name": "Python",
"slug": "python"
},
{
"created_at": "2024-01-01T00:00:00Z",
"id": 2,
"name": "Django",
"slug": "django"
},
{
"created_at": "2024-01-01T00:00:00Z",
"id": 3,
"name": "Empty",
"slug": "empty"
}
],
"blog_tag_sequence": {
"is_called": true,
"last_value": 3
},
"blog_user": [
{
"bio": "",
"created_at": "2024-01-01T00:00:00Z",
"display_name": "Bob",
"email": "duplicate@example.com",
"id": 2,
"username": "bob"
},
{
"bio": "",
"created_at": "2024-01-01T00:00:00Z",
"display_name": "Carol",
"email": "duplicate@example.com",
"id": 3,
"username": "carol"
},
{
"bio": "Author biography",
"created_at": "2024-01-01T00:00:00Z",
"display_name": "Alice",
"email": "alice@example.com",
"id": 1,
"username": "alice"
}
],
"blog_user_sequence": {
"is_called": true,
"last_value": 3
}
}
}