-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update example, fix descriptions for top-level DC
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
- Loading branch information
Showing
7 changed files
with
98 additions
and
31 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"properties": { | ||
"foo": { | ||
"default": 123, | ||
"title": "Foo", | ||
"type": "integer", | ||
"description": "A very important field." | ||
} | ||
}, | ||
"title": "Bob", | ||
"type": "object", | ||
"description": "Some docstring." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"$defs": { | ||
"Bob": { | ||
"properties": { | ||
"foo": { | ||
"default": 123, | ||
"title": "Foo", | ||
"type": "integer", | ||
"description": "A very important field." | ||
} | ||
}, | ||
"title": "Bob", | ||
"type": "object", | ||
"description": "Some docstring." | ||
} | ||
}, | ||
"properties": { | ||
"bob": { | ||
"$ref": "#/$defs/Bob", | ||
"description": "bobobobo." | ||
}, | ||
"other_field": { | ||
"title": "Other Field", | ||
"type": "string", | ||
"description": "This is a docstring for the other field." | ||
} | ||
}, | ||
"required": [ | ||
"bob", | ||
"other_field" | ||
], | ||
"title": "Nested", | ||
"type": "object", | ||
"description": "Some docstring of the 'Nested' class." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# yaml-language-server: $schema=.schemas/Bob_schema.json | ||
foo: 222 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters