diff --git a/backend/schema/common.json b/backend/schema/common.json index 00b06e00..e56c9f70 100644 --- a/backend/schema/common.json +++ b/backend/schema/common.json @@ -77,14 +77,12 @@ "example": 3 }, "domain_names": { - "description": "Domain Names separated by a comma", + "description": "Domain Names array", "type": "array", - "minItems": 1, - "maxItems": 100, "uniqueItems": true, "items": { "type": "string", - "pattern": "^[^&| @!#%^();:/\\\\}{=+?<>,~`'\"]+$" + "minLength": 1 }, "example": ["example.com", "www.example.com"] }, diff --git a/backend/schema/components/certificate-object.json b/backend/schema/components/certificate-object.json index 80cd92be..4ef666b4 100644 --- a/backend/schema/components/certificate-object.json +++ b/backend/schema/components/certificate-object.json @@ -25,15 +25,7 @@ "example": "My Custom Cert" }, "domain_names": { - "description": "Domain Names separated by a comma", - "type": "array", - "maxItems": 100, - "uniqueItems": true, - "items": { - "type": "string", - "pattern": "^[^&| @!#%^();:/\\\\}{=+?<>,~`'\"]+$" - }, - "example": ["example.com", "www.example.com"] + "$ref": "../common.json#/properties/domain_names" }, "expires_on": { "description": "Date and time of expiration",