-
Notifications
You must be signed in to change notification settings - Fork 629
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add schema for ControlInfoData.json #1630
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love the idea of adding a schema for this file. One thing about the descriptions, I think ideally we want to first name the intention of the property and then explain where it is used (if it is necessary to do that at all)
"uniqueItems": true | ||
}, | ||
"Title": { | ||
"type": "string", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would probably write something like "The name of the control group. Will be displayed on the control group page and navigation".
Same for the other descriptions, I think ideally we should tell the intention of the property and then tell where it is being used.
}, | ||
"IsSpecialSection": { | ||
"type": "boolean", | ||
"description": "Special section is hard-coded in NavigationRootPage.xaml", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"description": "Special section is hard-coded in NavigationRootPage.xaml", | |
"description": "Indicates that this section is not a regular control section but is added to the navigation differently", |
"type": "array", | ||
"items": { | ||
"type": "string", | ||
"description": "Name of the related control" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"description": "Name of the related control" | |
"description": "ID of the related control" |
Add more description
@marcelwgn Did some changes to it, please review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thank you for these changes!
/azp run |
Description
I added a schema file for the
ControlInfoData.json
to make adding new control / control group to it simpler. Now you get nice intellisense for all properties and error message for missing required ones. The schema should be automatically picked up by any reasonable editors.Motivation and Context
I just happens to know this.
How Has This Been Tested?
The current file reports no mismatch for this schema.
Screenshots (if appropriate):
Types of changes