[wp-trac] [WordPress Trac] #55963: fontFace not in json schema

WordPress Trac noreply at wordpress.org
Sat Jun 11 13:35:06 UTC 2022


#55963: fontFace not in json schema
----------------------------+------------------------------
 Reporter:  wprediscovered  |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Themes          |     Version:  6.0
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+------------------------------
Changes (by SergeyBiryukov):

 * component:  General => Themes


Old description:

> I validate my `theme.json` using the json schema, as recommended in the
> manual: https://developer.wordpress.org/block-editor/how-to-guides/themes
> /theme-json/#developing-with-theme-json
>
> I started using the recent `fontFace` property to add my fonts via the
> `theme.json`. Now the validation fails, because the current schema
> doesn't include the `fontFace` property:
> https://schemas.wp.org/trunk/theme.json Neither does the Gutenberg
> schema:
> https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/theme.json
>
> It seems the schema update was never part of the Gutenberg PR
> https://github.com/WordPress/gutenberg/pull/40493 and thus not of the
> Core backport: https://core.trac.wordpress.org/changeset/53282
>
> An update to the json schema is needed to reflect the changed interface.

New description:

 I validate my `theme.json` using the json schema, as recommended in the
 manual: https://developer.wordpress.org/block-editor/how-to-guides/themes
 /theme-json/#developing-with-theme-json

 I started using the recent `fontFace` property to add my fonts via the
 `theme.json`. Now the validation fails, because the current schema doesn't
 include the `fontFace` property: https://schemas.wp.org/trunk/theme.json
 Neither does the Gutenberg schema:
 https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/theme.json

 It seems the schema update was never part of the Gutenberg PR
 https://github.com/WordPress/gutenberg/pull/40493 and thus not of the Core
 backport: [53282]

 An update to the json schema is needed to reflect the changed interface.

--

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55963#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list