Skip to content

Commit

Permalink
fix some strict errors
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronFeledy committed Jan 3, 2025
1 parent c7aa4de commit 350e4b5
Show file tree
Hide file tree
Showing 3 changed files with 3,776 additions and 32 deletions.
93 changes: 62 additions & 31 deletions landofile-spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@
"lando": {
"service": {
"type": "object",
"description": "The name of the service.",
"properties": {
"type": {
"type": "string",
Expand Down Expand Up @@ -310,8 +311,12 @@
},
"ssl": {
"oneOf": [
{ "type": "boolean" },
{ "type": "number" }
{
"type": "boolean"
},
{
"type": "number"
}
],
"description": "SSL configuration for the service.",
"examples": [
Expand Down Expand Up @@ -375,8 +380,18 @@
"description": "Command to run when starting the service."
},
"port": {
"type": ["string", "number", "boolean"],
"description": "Port to expose for the service. Set to false to disable port mapping. Values less than 1024 will cause the service to run as root.",
"oneOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
}
],
"examples": [
"3000",
80,
Expand Down Expand Up @@ -446,9 +461,16 @@
]
},
"cmd": {
"type": [
"string",
"array"
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"description": "The command(s) to run for the tool.",
"items": {
Expand Down Expand Up @@ -692,11 +714,19 @@
"type": "object",
"patternProperties": {
".+": {
"type": [
"string",
"number",
"boolean",
"null"
"oneOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
}
]
}
},
Expand Down Expand Up @@ -725,28 +755,28 @@
"type": "array",
"description": "Volumes for the service.",
"items": {
"type": [
"string",
"object"
],
"properties": {
"type": {
"type": "string",
"description": "Type of volume.",
"examples": [
"volume"
]
},
"source": {
"type": "string",
"description": "Source of the volume."
"oneOf": [
{
"type": "string"
},
"target": {
"type": "string",
"description": "Target of the volume."
{
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Type of volume."
},
"source": {
"type": "string",
"description": "Source of the volume."
},
"target": {
"type": "string",
"description": "Target of the volume."
}
}
}
},
"additionalProperties": false
]
},
"examples": [
[
Expand Down Expand Up @@ -786,6 +816,7 @@
"config": {
"xdebug": {
"description": "Xdebug configuration for the app. This can be a boolean or a string of modes to enable.",
"type": ["boolean", "string"],
"oneOf": [
{
"type": "boolean"
Expand Down
Loading

0 comments on commit 350e4b5

Please sign in to comment.