Skip to content

Commit

Permalink
fix(hub-common): page schema missing _thumbnail; caused details pane …
Browse files Browse the repository at this point in the history
…to crash (#1294)

affects: @esri/hub-common
  • Loading branch information
abp6318 authored Oct 20, 2023
1 parent c99e05a commit 6502c6b
Showing 1 changed file with 3 additions and 27 deletions.
30 changes: 3 additions & 27 deletions packages/common/src/pages/_internal/PageSchema.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import { IConfigurationSchema } from "../../core";
import {
ENTITY_ACCESS_SCHEMA,
ENTITY_CATEGORIES_SCHEMA,
ENTITY_NAME_SCHEMA,
ENTITY_TAGS_SCHEMA,
} from "../../core/schemas/shared";
import { HubItemEntitySchema } from "../../core/schemas/shared/HubItemEntitySchema";

export const PageEditorTypes = ["hub:page:edit"] as const;
export type PageEditorType = (typeof PageEditorTypes)[number];
Expand All @@ -13,27 +8,8 @@ export type PageEditorType = (typeof PageEditorTypes)[number];
* defines the JSON schema for a Hub Site's editable fields
*/
export const PageSchema: IConfigurationSchema = {
required: ["name"],
type: "object",
...HubItemEntitySchema,
properties: {
name: ENTITY_NAME_SCHEMA,
summary: {
type: "string",
},
description: {
type: "string",
},
access: ENTITY_ACCESS_SCHEMA,
groups: {
type: "array",
items: {
type: "string",
},
},
location: {
type: "object",
},
tags: ENTITY_TAGS_SCHEMA,
categories: ENTITY_CATEGORIES_SCHEMA,
...HubItemEntitySchema.properties,
},
} as unknown as IConfigurationSchema;

0 comments on commit 6502c6b

Please sign in to comment.