Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
renovate
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
Renovate Bot
renovate
Commits
50fb7129
Commit
50fb7129
authored
6 years ago
by
Rhys Arkins
Browse files
Options
Downloads
Patches
Plain Diff
refactor(schema): move description first
parent
82a9263d
No related branches found
No related tags found
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/create-json-schema.js
+3
-3
3 additions, 3 deletions
bin/create-json-schema.js
renovate-schema.json
+215
-215
215 additions, 215 deletions
renovate-schema.json
with
218 additions
and
218 deletions
bin/create-json-schema.js
+
3
−
3
View file @
50fb7129
...
@@ -22,6 +22,9 @@ const properties = {};
...
@@ -22,6 +22,9 @@ const properties = {};
function
createSingleConfig
(
option
)
{
function
createSingleConfig
(
option
)
{
const
temp
=
{};
const
temp
=
{};
if
(
option
.
description
)
{
temp
.
description
=
option
.
description
;
}
temp
.
type
=
types
[
option
.
type
];
temp
.
type
=
types
[
option
.
type
];
if
(
temp
.
type
===
'
object
'
)
{
if
(
temp
.
type
===
'
object
'
)
{
temp
.
$ref
=
'
#
'
;
temp
.
$ref
=
'
#
'
;
...
@@ -37,9 +40,6 @@ function createSingleConfig(option) {
...
@@ -37,9 +40,6 @@ function createSingleConfig(option) {
if
(
option
.
format
&&
temp
.
type
!==
'
array
'
)
{
if
(
option
.
format
&&
temp
.
type
!==
'
array
'
)
{
temp
.
format
=
option
.
format
;
temp
.
format
=
option
.
format
;
}
}
if
(
option
.
description
)
{
temp
.
description
=
option
.
description
;
}
if
(
option
.
default
!==
undefined
)
{
if
(
option
.
default
!==
undefined
)
{
temp
.
default
=
option
.
default
;
temp
.
default
=
option
.
default
;
}
}
...
...
This diff is collapsed.
Click to expand it.
renovate-schema.json
+
215
−
215
View file @
50fb7129
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment