Skip to content

Commit

Permalink
chore: rename uri to link to differentiate
Browse files Browse the repository at this point in the history
  • Loading branch information
dcshzj committed Jul 23, 2024
1 parent c830c68 commit 4198ea8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const jsonFormsLinkControlTester: RankedTester = rankWith(
JSON_FORMS_RANKING.LinkControl,
and(
isStringControl,
schemaMatches((schema) => schema.format === "uri"),
schemaMatches((schema) => schema.format === "link"),
),
)

Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/interfaces/complex/Button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const ButtonSchema = Type.Object(
href: Type.String({
title: "Button URL",
description: "The URL to navigate to when the button is clicked",
format: "uri",
format: "link",
}),
colorScheme: Type.Optional(
Type.Union(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const ContentPageHeaderSchema = Type.Object(
Type.String({
title: "Button URL",
description: "The URL the button should link to",
format: "uri",
format: "link",
}),
),
},
Expand Down

0 comments on commit 4198ea8

Please sign in to comment.