From 72b119f6746868df51b3dd7586bdfb08fc3f3591 Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Tue, 6 Feb 2024 12:49:31 +0100 Subject: [PATCH] Regenerate api fixtures --- tests/qunit/fixtures/wp-api-generated.js | 186 +++++++++++++++++++---- 1 file changed, 160 insertions(+), 26 deletions(-) diff --git a/tests/qunit/fixtures/wp-api-generated.js b/tests/qunit/fixtures/wp-api-generated.js index b305d74c577b0..c48e0011aff9f 100644 --- a/tests/qunit/fixtures/wp-api-generated.js +++ b/tests/qunit/fixtures/wp-api-generated.js @@ -810,7 +810,13 @@ mockedApiResponse.Schema = { "meta": { "description": "Meta fields.", "type": "object", - "properties": [], + "properties": { + "footnotes": { + "type": "string", + "description": "", + "default": "" + } + }, "required": false }, "sticky": { @@ -1089,7 +1095,13 @@ mockedApiResponse.Schema = { "meta": { "description": "Meta fields.", "type": "object", - "properties": [], + "properties": { + "footnotes": { + "type": "string", + "description": "", + "default": "" + } + }, "required": false }, "sticky": { @@ -1528,7 +1540,13 @@ mockedApiResponse.Schema = { "meta": { "description": "Meta fields.", "type": "object", - "properties": [], + "properties": { + "footnotes": { + "type": "string", + "description": "", + "default": "" + } + }, "required": false }, "sticky": { @@ -1996,7 +2014,13 @@ mockedApiResponse.Schema = { "meta": { "description": "Meta fields.", "type": "object", - "properties": [], + "properties": { + "footnotes": { + "type": "string", + "description": "", + "default": "" + } + }, "required": false }, "template": { @@ -2247,7 +2271,13 @@ mockedApiResponse.Schema = { "meta": { "description": "Meta fields.", "type": "object", - "properties": [], + "properties": { + "footnotes": { + "type": "string", + "description": "", + "default": "" + } + }, "required": false }, "template": { @@ -2653,7 +2683,13 @@ mockedApiResponse.Schema = { "meta": { "description": "Meta fields.", "type": "object", - "properties": [], + "properties": { + "footnotes": { + "type": "string", + "description": "", + "default": "" + } + }, "required": false }, "template": { @@ -4622,7 +4658,17 @@ mockedApiResponse.Schema = { "meta": { "description": "Meta fields.", "type": "object", - "properties": [], + "properties": { + "wp_pattern_sync_status": { + "type": "string", + "description": "", + "default": "", + "enum": [ + "partial", + "unsynced" + ] + } + }, "required": false }, "template": { @@ -4792,7 +4838,17 @@ mockedApiResponse.Schema = { "meta": { "description": "Meta fields.", "type": "object", - "properties": [], + "properties": { + "wp_pattern_sync_status": { + "type": "string", + "description": "", + "default": "", + "enum": [ + "partial", + "unsynced" + ] + } + }, "required": false }, "template": { @@ -5122,7 +5178,17 @@ mockedApiResponse.Schema = { "meta": { "description": "Meta fields.", "type": "object", - "properties": [], + "properties": { + "wp_pattern_sync_status": { + "type": "string", + "description": "", + "default": "", + "enum": [ + "partial", + "unsynced" + ] + } + }, "required": false }, "template": { @@ -9244,7 +9310,25 @@ mockedApiResponse.Schema = { "meta": { "description": "Meta fields.", "type": "object", - "properties": [], + "properties": { + "persisted_preferences": { + "type": "object", + "description": "", + "default": [], + "context": [ + "edit" + ], + "properties": { + "_modified": { + "description": "The date and time the preferences were updated.", + "type": "string", + "format": "date-time", + "readonly": false + } + }, + "additionalProperties": true + } + }, "required": false } } @@ -9375,7 +9459,25 @@ mockedApiResponse.Schema = { "meta": { "description": "Meta fields.", "type": "object", - "properties": [], + "properties": { + "persisted_preferences": { + "type": "object", + "description": "", + "default": [], + "context": [ + "edit" + ], + "properties": { + "_modified": { + "description": "The date and time the preferences were updated.", + "type": "string", + "format": "date-time", + "readonly": false + } + }, + "additionalProperties": true + } + }, "required": false } } @@ -9516,7 +9618,25 @@ mockedApiResponse.Schema = { "meta": { "description": "Meta fields.", "type": "object", - "properties": [], + "properties": { + "persisted_preferences": { + "type": "object", + "description": "", + "default": [], + "context": [ + "edit" + ], + "properties": { + "_modified": { + "description": "The date and time the preferences were updated.", + "type": "string", + "format": "date-time", + "readonly": false + } + }, + "additionalProperties": true + } + }, "required": false } } @@ -12132,7 +12252,8 @@ mockedApiResponse.PostsCollection = [ "template": "", "format": "standard", "meta": { - "meta_key": "meta_value" + "meta_key": "meta_value", + "footnotes": "" }, "categories": [ 1 @@ -12232,7 +12353,8 @@ mockedApiResponse.PostModel = { "template": "", "format": "standard", "meta": { - "meta_key": "meta_value" + "meta_key": "meta_value", + "footnotes": "" }, "categories": [ 1 @@ -12263,7 +12385,8 @@ mockedApiResponse.postRevisions = [ "rendered": "" }, "meta": { - "meta_key": "" + "meta_key": "", + "footnotes": "" }, "_links": { "parent": [ @@ -12295,7 +12418,8 @@ mockedApiResponse.postRevisions = [ "rendered": "

REST API Client Fixture: Post

\n" }, "meta": { - "meta_key": "" + "meta_key": "", + "footnotes": "" }, "_links": { "parent": [ @@ -12329,7 +12453,8 @@ mockedApiResponse.revision = { "rendered": "

REST API Client Fixture: Post

\n" }, "meta": { - "meta_key": "" + "meta_key": "", + "footnotes": "" } }; @@ -12356,7 +12481,8 @@ mockedApiResponse.postAutosaves = [ "rendered": "" }, "meta": { - "meta_key": "" + "meta_key": "", + "footnotes": "" }, "_links": { "parent": [ @@ -12390,7 +12516,8 @@ mockedApiResponse.autosave = { "rendered": "" }, "meta": { - "meta_key": "" + "meta_key": "", + "footnotes": "" } }; @@ -12427,7 +12554,8 @@ mockedApiResponse.PagesCollection = [ "ping_status": "closed", "template": "", "meta": { - "meta_key": "" + "meta_key": "", + "footnotes": "" }, "_links": { "self": [ @@ -12511,7 +12639,8 @@ mockedApiResponse.PageModel = { "ping_status": "closed", "template": "", "meta": { - "meta_key": "" + "meta_key": "", + "footnotes": "" } }; @@ -12538,7 +12667,8 @@ mockedApiResponse.pageRevisions = [ "rendered": "" }, "meta": { - "meta_key": "" + "meta_key": "", + "footnotes": "" }, "_links": { "parent": [ @@ -12570,7 +12700,8 @@ mockedApiResponse.pageRevisions = [ "rendered": "

REST API Client Fixture: Page

\n" }, "meta": { - "meta_key": "" + "meta_key": "", + "footnotes": "" }, "_links": { "parent": [ @@ -12604,7 +12735,8 @@ mockedApiResponse.pageRevision = { "rendered": "

REST API Client Fixture: Page

\n" }, "meta": { - "meta_key": "" + "meta_key": "", + "footnotes": "" } }; @@ -12631,7 +12763,8 @@ mockedApiResponse.pageAutosaves = [ "rendered": "" }, "meta": { - "meta_key": "" + "meta_key": "", + "footnotes": "" }, "_links": { "parent": [ @@ -12665,7 +12798,8 @@ mockedApiResponse.pageAutosave = { "rendered": "" }, "meta": { - "meta_key": "" + "meta_key": "", + "footnotes": "" } };