Skip to content

Commit

Permalink
feat(hub-common): remove required property prompt
Browse files Browse the repository at this point in the history
affects: @esri/hub-common

remove required property prompt from discussions schema

ISSUES CLOSED: 6876
  • Loading branch information
tannerjt committed Jun 12, 2023
1 parent 2cd91b0 commit 0c75e69
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ export const DiscussionEditorTypes = [
* defines the JSON schema for a Discussion's editable fields
*/
export const DiscussionSchema: IConfigurationSchema = {
required: ["name", "prompt"],
required: ["name"],
type: "object",
properties: {
name: ENTITY_NAME_SCHEMA,
prompt: {
type: "string",
default: "We want to hear from you!",
},
summary: {
type: "string",
Expand Down
4 changes: 3 additions & 1 deletion packages/common/src/discussions/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,7 @@ export const DEFAULT_DISCUSSION_MODEL: IModel = {
schemaVersion: 1,
},
},
data: {},
data: {
prompt: "We want to hear from you!",
},
} as unknown as IModel;

0 comments on commit 0c75e69

Please sign in to comment.