Skip to content

Commit

Permalink
fix: Update schema syntax when multiple props are deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
remydenton committed Dec 12, 2018
1 parent 09857c4 commit da29752
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
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 da29752

Please sign in to comment.