Skip to content

Commit 9bacea9

Browse files
committed
Update mocked API response for attachments
1 parent 8f52943 commit 9bacea9

File tree

1 file changed

+121
-7
lines changed

1 file changed

+121
-7
lines changed

tests/qunit/fixtures/wp-api-generated.js

Lines changed: 121 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,7 @@ mockedApiResponse.Schema = {
2121
"wp-site-health/v1",
2222
"wp-block-editor/v1"
2323
],
24-
"authentication": {
25-
"application-passwords": {
26-
"endpoints": {
27-
"authorization": "http://example.org/wp-admin/authorize-application.php"
28-
}
29-
}
30-
},
24+
"authentication": [],
3125
"routes": {
3226
"/": {
3327
"namespace": "",
@@ -3427,6 +3421,45 @@ mockedApiResponse.Schema = {
34273421
"args"
34283422
],
34293423
"oneOf": [
3424+
{
3425+
"title": "Flip",
3426+
"properties": {
3427+
"type": {
3428+
"description": "Flip type.",
3429+
"type": "string",
3430+
"enum": [
3431+
"flip"
3432+
]
3433+
},
3434+
"args": {
3435+
"description": "Flip arguments.",
3436+
"type": "object",
3437+
"required": [
3438+
"flip"
3439+
],
3440+
"properties": {
3441+
"flip": {
3442+
"description": "Flip direction. [ horizontal, vertical ] 0 for no flip, 1 for flip.",
3443+
"type": "object",
3444+
"required": [
3445+
"horizontal",
3446+
"vertical"
3447+
],
3448+
"properties": {
3449+
"horizontal": {
3450+
"description": "Horizontal flip direction. 0 for no flip, 1 for flip.",
3451+
"type": "number"
3452+
},
3453+
"vertical": {
3454+
"description": "Vertical flip direction. 0 for no flip, 1 for flip.",
3455+
"type": "number"
3456+
}
3457+
}
3458+
}
3459+
}
3460+
}
3461+
}
3462+
},
34303463
{
34313464
"title": "Rotation",
34323465
"properties": {
@@ -3532,6 +3565,87 @@ mockedApiResponse.Schema = {
35323565
"minimum": 0,
35333566
"maximum": 100,
35343567
"required": false
3568+
},
3569+
"caption": {
3570+
"description": "The attachment caption.",
3571+
"type": "object",
3572+
"properties": {
3573+
"raw": {
3574+
"description": "Caption for the attachment, as it exists in the database.",
3575+
"type": "string",
3576+
"context": [
3577+
"edit"
3578+
]
3579+
},
3580+
"rendered": {
3581+
"description": "HTML caption for the attachment, transformed for display.",
3582+
"type": "string",
3583+
"context": [
3584+
"view",
3585+
"edit",
3586+
"embed"
3587+
],
3588+
"readonly": true
3589+
}
3590+
},
3591+
"required": false
3592+
},
3593+
"description": {
3594+
"description": "The attachment description.",
3595+
"type": "object",
3596+
"properties": {
3597+
"raw": {
3598+
"description": "Description for the attachment, as it exists in the database.",
3599+
"type": "string",
3600+
"context": [
3601+
"edit"
3602+
]
3603+
},
3604+
"rendered": {
3605+
"description": "HTML description for the attachment, transformed for display.",
3606+
"type": "string",
3607+
"context": [
3608+
"view",
3609+
"edit"
3610+
],
3611+
"readonly": true
3612+
}
3613+
},
3614+
"required": false
3615+
},
3616+
"title": {
3617+
"description": "The title for the post.",
3618+
"type": "object",
3619+
"properties": {
3620+
"raw": {
3621+
"description": "Title for the post, as it exists in the database.",
3622+
"type": "string",
3623+
"context": [
3624+
"edit"
3625+
]
3626+
},
3627+
"rendered": {
3628+
"description": "HTML title for the post, transformed for display.",
3629+
"type": "string",
3630+
"context": [
3631+
"view",
3632+
"edit",
3633+
"embed"
3634+
],
3635+
"readonly": true
3636+
}
3637+
},
3638+
"required": false
3639+
},
3640+
"post": {
3641+
"description": "The ID for the associated post of the attachment.",
3642+
"type": "integer",
3643+
"required": false
3644+
},
3645+
"alt_text": {
3646+
"description": "Alternative text to display when attachment is not displayed.",
3647+
"type": "string",
3648+
"required": false
35353649
}
35363650
}
35373651
}

0 commit comments

Comments
 (0)