diff options
| author | James Elliott <james-d-elliott@users.noreply.github.com> | 2024-03-11 09:22:24 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-11 09:22:24 +1100 |
| commit | e0f803cea09a1fa61b91cc1a51a663bbe6d1f5bb (patch) | |
| tree | ecc39725370a67e2aa9dca1514a6966daa5217dc /cmd | |
| parent | 317661e451dfe290806e05d64a60a4e749817b36 (diff) | |
docs: update various mistakes (#6825)
Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/authelia-gen/cmd_docs_jsonschema.go | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/cmd/authelia-gen/cmd_docs_jsonschema.go b/cmd/authelia-gen/cmd_docs_jsonschema.go index ceea8e091..93e9d7df5 100644 --- a/cmd/authelia-gen/cmd_docs_jsonschema.go +++ b/cmd/authelia-gen/cmd_docs_jsonschema.go @@ -359,16 +359,23 @@ func jsonschemaKoanfMapper(t reflect.Type) *jsonschema.Schema { } case "schema.CryptographicKey": return &jsonschema.Schema{ - Type: jsonschema.TypeString, + Type: jsonschema.TypeString, + Pattern: `^-{5}BEGIN (((RSA|EC) )?(PRIVATE|PUBLIC) KEY|CERTIFICATE)-{5}\n([a-zA-Z0-9\/+]{1,64}\n)+([a-zA-Z0-9\/+]{1,64}[=]{0,2})\n-{5}END (((RSA|EC) )?(PRIVATE|PUBLIC) KEY|CERTIFICATE)-{5}\n?$`, } case "schema.CryptographicPrivateKey": return &jsonschema.Schema{ Type: jsonschema.TypeString, - Pattern: `^-{5}(BEGIN ((RSA|EC) )?PRIVATE KEY-{5}\n([a-zA-Z0-9/+]{1,64}\n)+([a-zA-Z0-9/+]{1,64}[=]{0,2})\n-{5}END ((RSA|EC) )?PRIVATE KEY-{5}\n?)+$`, + Pattern: `^-{5}BEGIN ((RSA|EC) )?PRIVATE KEY-{5}\n([a-zA-Z0-9\/+]{1,64}\n)+([a-zA-Z0-9\/+]{1,64}[=]{0,2})\n-{5}END ((RSA|EC) )?PRIVATE KEY-{5}\n?$`, } - case "rsa.PrivateKey", "*rsa.PrivateKey", "ecdsa.PrivateKey", "*.ecdsa.PrivateKey": + case "rsa.PrivateKey", "*rsa.PrivateKey": return &jsonschema.Schema{ - Type: jsonschema.TypeString, + Type: jsonschema.TypeString, + Pattern: `^-{5}(BEGIN (RSA )?PRIVATE KEY-{5}\n([a-zA-Z0-9\/+]{1,64}\n)+([a-zA-Z0-9\/+]{1,64}[=]{0,2})\n-{5}END (RSA )?PRIVATE KEY-{5}\n?)+$`, + } + case "ecdsa.PrivateKey", "*.ecdsa.PrivateKey": + return &jsonschema.Schema{ + Type: jsonschema.TypeString, + Pattern: `^-{5}(BEGIN ((EC )?PRIVATE KEY-{5}\n([a-zA-Z0-9\/+]{1,64}\n)+([a-zA-Z0-9\/+]{1,64}[=]{0,2})\n-{5}END (EC )?PRIVATE KEY-{5}\n?)+$`, } case "mail.Address", "*mail.Address": return &jsonschema.Schema{ |
