Skip to content

Commit

Permalink
Move remaining defaults to the end
Browse files Browse the repository at this point in the history
  • Loading branch information
ajlende authored and scruffian committed Jul 23, 2024
1 parent 2b03437 commit bf6403a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
12 changes: 6 additions & 6 deletions schemas/json/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,8 @@
"items": {
"type": "string"
},
"default": [ "px", "em", "rem", "vh", "vw", "%" ],
"minItems": 1
"minItems": 1,
"default": [ "px", "em", "rem", "vh", "vw", "%" ]
},
"customSpacingSize": {
"description": "Allow users to set custom space sizes.",
Expand Down Expand Up @@ -699,27 +699,27 @@
},
"fontWeight": {
"description": "List of available font weights, separated by a space.",
"default": "400",
"oneOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
],
"default": "400"
},
"fontDisplay": {
"description": "CSS font-display value.",
"type": "string",
"default": "fallback",
"enum": [
"auto",
"block",
"fallback",
"swap",
"optional"
]
],
"default": "fallback"
},
"src": {
"description": "Paths or URLs to the font files.",
Expand Down
32 changes: 16 additions & 16 deletions schemas/json/wp-env.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,58 +10,58 @@
"properties": {
"core": {
"description": "The WordPress installation to use. If null is specified, wp-env will use the latest production release of WordPress.",
"default": null,
"oneOf": [
{
"type": "string"
},
{
"type": "null"
}
]
],
"default": null
},
"phpVersion": {
"description": "The PHP version to use. If null is specified, wp-env will use the default version used with production release of WordPress.",
"default": null,
"oneOf": [
{
"type": "string"
},
{
"type": "null"
}
]
],
"default": null
},
"plugins": {
"description": "A list of plugins to install and activate in the environment.",
"default": [],
"type": "array",
"items": {
"type": "string"
}
},
"default": []
},
"themes": {
"description": "A list of themes to install in the environment.",
"default": [],
"type": "array",
"items": {
"type": "string"
}
},
"default": []
},
"port": {
"description": "The primary port number to use for the installation. You'll access the instance through the port: 'http://localhost:8888'.",
"default": 8888,
"type": "integer"
"type": "integer",
"default": 8888
},
"config": {
"description": "Mapping of wp-config.php constants to their desired values.",
"default": {},
"type": "object"
"type": "object",
"default": {}
},
"mappings": {
"description": "Mapping of WordPress directories to local directories to be mounted in the WordPress instance.",
"default": {},
"type": "object"
"type": "object",
"default": {}
}
}
},
Expand Down Expand Up @@ -90,7 +90,6 @@
"env": {
"description": "The key env is available to override any of the above options on an individual-environment basis.",
"type": "object",
"default": {},
"patternProperties": {
"[a-zA-Z]": {
"allOf": [
Expand All @@ -103,7 +102,8 @@
}
]
}
}
},
"default": {}
}
}
},
Expand Down

0 comments on commit bf6403a

Please sign in to comment.