Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Adjust JSON schema #206

Merged
merged 2 commits into from
Oct 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 56 additions & 12 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,12 @@
}
},
"request": {
"description": "Headers to add to every request passed to PHP.",
"$ref": "#/$defs/HashmapString"
"description": "Custom HTTP headers to add to every request passed to PHP.",
"$ref": "#/$defs/Headers"
},
"response": {
"description": "Headers added to every response.",
"$ref": "#/$defs/HashmapString"
"description": "Custom HTTP headers to add to every response from PHP.",
"$ref": "#/$defs/Headers"
}
}
},
Expand Down Expand Up @@ -201,13 +201,13 @@
"type": "boolean",
"default": false
},
"response": {
"description": "Custom HTTP headers to add to responses to requests for static files.",
"$ref": "#/$defs/HashmapString"
},
"request": {
"description": "Custom HTTP headers to add to requests for static files.",
"$ref": "#/$defs/HashmapString"
"description": "Custom HTTP headers to add to every request for static files.",
"$ref": "#/$defs/Headers"
},
"response": {
"description": "Custom HTTP headers to add to every response from static files.",
"$ref": "#/$defs/Headers"
}
}
},
Expand All @@ -222,6 +222,9 @@
},
"http2": {
"$ref": "#/$defs/HTTP2"
},
"http3": {
"$ref": "#/$defs/HTTP3"
}
},
"$defs": {
Expand Down Expand Up @@ -464,8 +467,49 @@
}
}
},
"HashmapString": {
"$ref": "https://raw.githubusercontent.com/roadrunner-server/roadrunner/refs/heads/master/schemas/config/3.0.schema.json#/definitions/HashmapString"
"HTTP3": {
"description": "HTTP/3 settings. **Experimental**: Requires that RoadRunner has experimental features enabled. Unless you configured `acme`, you must provide a `key` and `cert` here.",
"type": "object",
"additionalProperties": false,
"required": [
"address"
],
"dependentRequired": {
"cert": [
"key"
],
"key": [
"cert"
]
},
"properties": {
"address": {
"description": "Host and/or port to listen on for HTTP/3.",
"type": "string",
"minLength": 1,
"examples": [
"127.0.0.1:8080",
":8080"
]
},
"cert": {
"$ref": "#/$defs/SSL/properties/cert"
},
"key": {
"$ref": "#/$defs/SSL/properties/key"
}
}
},
"Headers": {
"type": "object",
"minProperties": 1,
"patternProperties": {
"^[a-zA-Z0-9._-]+$": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false
}
}
}
Loading