Add certificate model for http and dns

change is_ecc to boolean, its still stored as int in sqlite
This commit is contained in:
Jamie Curnow
2023-02-28 20:55:40 +10:00
parent 7455accf58
commit fc2df47753
22 changed files with 599 additions and 71 deletions

View File

@ -51,9 +51,7 @@ func createCertificateHTTP() string {
"type": "object"
},
"is_ecc": {
"type": "integer",
"minimum": 0,
"maximum": 1
"type": "boolean"
}
}
}`, strictString("http"), intMinOne, stringMinMax(1, 100), domainNames())
@ -83,9 +81,7 @@ func createCertificateDNS() string {
"type": "object"
},
"is_ecc": {
"type": "integer",
"minimum": 0,
"maximum": 1
"type": "boolean"
}
}
}`, strictString("dns"), intMinOne, intMinOne, stringMinMax(1, 100), domainNames())