LayoutPreview schema should have required properties

Created on 17 December 2024, 5 days ago

Overview

In openapi.yml, the LayoutPreview schema defines layout and model but doesn't define either as required. That doesn't seem right. Is it sensible for something to reference this schema and not expect both keys to be there? I stumbled on this while reviewing πŸ“Œ Change ApiContentUpdateForDemoController to save from auto-save instead of request data Active , which removes layout and model from the request body of the API end-point changed by that MR, and that kind of change should have required a change to openapi.yml but didn't because the LayoutPreview schema doesn't declare those as required keys.

Proposed resolution

User interface changes

πŸ“Œ Task
Status

Active

Version

0.0

Component

Internal HTTP API

Created by

πŸ‡ΊπŸ‡ΈUnited States effulgentsia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024