docs: Fix examples for some JSON Schema config keys
],
"uniqueItems": true,
"examples": [
+ [
"https://example.com",
"https://*.example.com",
"https://*.foo.example.com"
]
+ ]
},
"allowed_methods": {
"type": "array",
"examples": [
"guest",
"anon",
- "anonymous",
"unknown"
],
"default": "anonymous",
},
"description": "URLs where ORY Oathkeeper can retrieve JSON Web Keys from for validating the JSON Web Token. Usually something like \"https://my-keys.com/.well-known/jwks.json\". The response of that endpoint must return a JSON Web Key Set (JWKS).\n\n>If this authenticator is enabled, this value is required.",
"examples": [
+ [
"https://my-website.com/.well-known/jwks.json",
"https://my-other-website.com/.well-known/jwks.json",
"file://path/to/local/jwks.json"
]
+ ]
},
"scope_strategy": {
"$ref": "#/definitions/scopeStrategy"
"description": "The OAuth 2.0 Scope to be requested during the OAuth 2.0 Client Credentials Grant.",
"examples": [
[
- "[\"foo\", \"bar\"]"
+ "foo",
+ "bar"
]
]
}
"description": "The OAuth 2.0 Scope to be requested during the OAuth 2.0 Client Credentials Grant.",
"examples": [
[
- "[\"foo\", \"bar\"]"
+ "foo", "bar"
]
]
}
"format": "uri"
},
"examples": [
- "[\"file://path/to/rules.json\",\"inline://W3siaWQiOiJmb28tcnVsZSIsImF1dGhlbnRpY2F0b3JzIjpbXX1d\",\"https://path-to-my-rules/rules.json\"]"
+ [
+ "file://path/to/rules.json",
+ "inline://W3siaWQiOiJmb28tcnVsZSIsImF1dGhlbnRpY2F0b3JzIjpbXX1d",
+ "https://path-to-my-rules/rules.json"
+ ]
]
},
"matching_strategy": {
"description": "This an optional field describing matching strategy. Currently supported values are 'glob' and 'regexp'.",
"type": "string",
"default": "regexp",
- "enum": ["glob", "regexp"],
+ "enum": [
+ "glob",
+ "regexp"
+ ],
"examples": [
- "glob", "regexp"
+ "glob"
]
}
}
"fallback": {
"title": "Error Handling Fallback",
"description": "This array defines how to handle errors when no \"when\" clause matches. If you have, for example, enabled redirect and json in your access rule, you could tell ORY Oathkeeper to try sending JSON if the request does not match the access rule definition",
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
"default": [
"json"
],
- "examples": [
- "json",
+ "examples": [[
"redirect"
- ]
+ ]]
},
"handlers": {
"additionalProperties": false,
"title": "Enabled",
"type": "boolean",
"default": true,
- "examples": [
- true
- ],
"description": "En-/disables this component."
}
},
