Diff

mod_http_oauth2/mod_http_oauth2.lua @ 5359:230fc6a0c086

mod_http_oauth2: Use new Lua pattern schema properties
author Kim Alvefur <zash@zash.se>
date Sat, 22 Apr 2023 16:29:56 +0200
parent 5358:0905d348bd34
child 5364:0444953e3247
line wrap: on
line diff
--- a/mod_http_oauth2/mod_http_oauth2.lua	Sat Apr 22 14:22:56 2023 +0200
+++ b/mod_http_oauth2/mod_http_oauth2.lua	Sat Apr 22 16:29:56 2023 +0200
@@ -658,19 +658,19 @@
 		};
 		response_types = { type = "array"; items = { type = "string"; enum = { "code"; "token" } } };
 		client_name = { type = "string" };
-		client_uri = { type = "string"; format = "uri"; pattern = "^https:" };
-		logo_uri = { type = "string"; format = "uri"; pattern = "^https:"  };
+		client_uri = { type = "string"; format = "uri"; luaPattern = "^https:" };
+		logo_uri = { type = "string"; format = "uri"; luaPattern = "^https:"  };
 		scope = { type = "string" };
 		contacts = { type = "array"; items = { type = "string" } };
-		tos_uri = { type = "string"; format = "uri"; pattern = "^https:"  };
-		policy_uri = { type = "string"; format = "uri"; pattern = "^https:"  };
-		jwks_uri = { type = "string"; format = "uri"; pattern = "^https:"  };
+		tos_uri = { type = "string"; format = "uri"; luaPattern = "^https:"  };
+		policy_uri = { type = "string"; format = "uri"; luaPattern = "^https:"  };
+		jwks_uri = { type = "string"; format = "uri"; luaPattern = "^https:"  };
 		jwks = { type = "object"; description = "JSON Web Key Set, RFC 7517" };
 		software_id = { type = "string"; format = "uuid" };
 		software_version = { type = "string" };
 	};
 	-- Localized versions of descriptive properties and URIs
-	patternProperties = { ["^[a-z_]+_uri#"] = { type = "string"; format = "uri"; pattern = "^https:"  } };
+	luaPatternProperties = { ["^[a-z_]+_uri#"] = { type = "string"; format = "uri"; luaPattern = "^https:"  } };
 	additionalProperties = { type = "string" };
 }