Skip to content

Commit

Permalink
Merge pull request #988 from bolt-design-system/fix/BDS-835-fix-depre…
Browse files Browse the repository at this point in the history
…cated-prop-schema-format

fix: Update schema syntax when multiple props are deprecated
  • Loading branch information
remydenton authored Dec 14, 2018
2 parents 3d84bf7 + 54a26b3 commit 8f681f4
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@
name: "email",
url: "mailto:?&body=Sample%20Text%20--%20https%3A//bolt-design-system.com"
}
],
inline: true
]
} only %}
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,7 @@
name: "email",
url: "mailto:?&body=Sample%20Text%20--%20https%3A//bolt-design-system.com"
}
],
inline: true
]
} only %}
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@
{# share widget #}
<div class="u-bolt-margin-bottom-medium">
{% include '@bolt-components-share/share.twig' with {
inline: true,
text: 'Share this page',
sources: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,6 @@


{% include '@bolt-components-share/share.twig' with {
inline: true,
text: 'Custom label',
sources: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,12 @@ properties:
required:
- text_to_copy
not:
required:
- iconSize
- copiedText
- text
- url
anyOf:
- required:
- iconSize
- required:
- copiedText
- required:
- text
- required:
- url
8 changes: 5 additions & 3 deletions packages/components/bolt-share/share.schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ $schema: http://json-schema.org/draft-04/schema#
title: Share
type: object
not:
required:
- inline
- copyToClipboard
anyOf:
- required:
- inline
- required:
- copyToClipboard
properties:
attributes:
type: object
Expand Down

0 comments on commit 8f681f4

Please sign in to comment.