Finish adding is_ecc field
This commit is contained in:
parent
9d8db41422
commit
dc97744c63
6 changed files with 28 additions and 0 deletions
|
@ -12,6 +12,7 @@
|
||||||
"certificate_authority_id",
|
"certificate_authority_id",
|
||||||
"dns_provider_id",
|
"dns_provider_id",
|
||||||
"name",
|
"name",
|
||||||
|
"is_ecc",
|
||||||
"status",
|
"status",
|
||||||
"domain_names"
|
"domain_names"
|
||||||
],
|
],
|
||||||
|
@ -78,6 +79,11 @@
|
||||||
"provided"
|
"provided"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"is_ecc": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 0,
|
||||||
|
"maximum": 1
|
||||||
|
},
|
||||||
"error_message": {
|
"error_message": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,6 +48,7 @@
|
||||||
"domain_names": [
|
"domain_names": [
|
||||||
"test1.jc21.com.au"
|
"test1.jc21.com.au"
|
||||||
],
|
],
|
||||||
|
"is_ecc": 0,
|
||||||
"status": "ready"
|
"status": "ready"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,6 +57,7 @@
|
||||||
"domain_names": [
|
"domain_names": [
|
||||||
"test1.jc21.com.au"
|
"test1.jc21.com.au"
|
||||||
],
|
],
|
||||||
|
"is_ecc": 0,
|
||||||
"status": "ready"
|
"status": "ready"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -75,6 +75,7 @@
|
||||||
"domain_names": [
|
"domain_names": [
|
||||||
"test1.jc21.com.au"
|
"test1.jc21.com.au"
|
||||||
],
|
],
|
||||||
|
"is_ecc": 0,
|
||||||
"status": "ready"
|
"status": "ready"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -44,6 +44,7 @@
|
||||||
"domain_names": [
|
"domain_names": [
|
||||||
"test1.jc21.com.au"
|
"test1.jc21.com.au"
|
||||||
],
|
],
|
||||||
|
"is_ecc": 0,
|
||||||
"status": "ready"
|
"status": "ready"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,6 +12,7 @@ func createCertificateCustom() string {
|
||||||
return fmt.Sprintf(`
|
return fmt.Sprintf(`
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
"required": [
|
"required": [
|
||||||
"type",
|
"type",
|
||||||
"name",
|
"name",
|
||||||
|
@ -34,6 +35,7 @@ func createCertificateHTTP() string {
|
||||||
return fmt.Sprintf(`
|
return fmt.Sprintf(`
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
"required": [
|
"required": [
|
||||||
"type",
|
"type",
|
||||||
"certificate_authority_id",
|
"certificate_authority_id",
|
||||||
|
@ -47,6 +49,11 @@ func createCertificateHTTP() string {
|
||||||
"domain_names": %s,
|
"domain_names": %s,
|
||||||
"meta": {
|
"meta": {
|
||||||
"type": "object"
|
"type": "object"
|
||||||
|
},
|
||||||
|
"is_ecc": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 0,
|
||||||
|
"maximum": 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}`, strictString("http"), intMinOne, stringMinMax(1, 100), domainNames())
|
}`, strictString("http"), intMinOne, stringMinMax(1, 100), domainNames())
|
||||||
|
@ -58,6 +65,7 @@ func createCertificateDNS() string {
|
||||||
return fmt.Sprintf(`
|
return fmt.Sprintf(`
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
"required": [
|
"required": [
|
||||||
"type",
|
"type",
|
||||||
"certificate_authority_id",
|
"certificate_authority_id",
|
||||||
|
@ -73,6 +81,11 @@ func createCertificateDNS() string {
|
||||||
"domain_names": %s,
|
"domain_names": %s,
|
||||||
"meta": {
|
"meta": {
|
||||||
"type": "object"
|
"type": "object"
|
||||||
|
},
|
||||||
|
"is_ecc": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 0,
|
||||||
|
"maximum": 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}`, strictString("dns"), intMinOne, intMinOne, stringMinMax(1, 100), domainNames())
|
}`, strictString("dns"), intMinOne, intMinOne, stringMinMax(1, 100), domainNames())
|
||||||
|
@ -84,6 +97,7 @@ func createCertificateMkcert() string {
|
||||||
return fmt.Sprintf(`
|
return fmt.Sprintf(`
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
"required": [
|
"required": [
|
||||||
"type",
|
"type",
|
||||||
"name",
|
"name",
|
||||||
|
@ -104,6 +118,7 @@ func updateCertificateHTTP() string {
|
||||||
return fmt.Sprintf(`
|
return fmt.Sprintf(`
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
"minProperties": 1,
|
"minProperties": 1,
|
||||||
"properties": {
|
"properties": {
|
||||||
"certificate_authority_id": %s,
|
"certificate_authority_id": %s,
|
||||||
|
@ -120,6 +135,7 @@ func updateCertificateDNS() string {
|
||||||
return fmt.Sprintf(`
|
return fmt.Sprintf(`
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
"minProperties": 1,
|
"minProperties": 1,
|
||||||
"properties": {
|
"properties": {
|
||||||
"certificate_authority_id": %s,
|
"certificate_authority_id": %s,
|
||||||
|
@ -137,6 +153,7 @@ func updateCertificateCustom() string {
|
||||||
return fmt.Sprintf(`
|
return fmt.Sprintf(`
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
"minProperties": 1,
|
"minProperties": 1,
|
||||||
"properties": {
|
"properties": {
|
||||||
"name": %s,
|
"name": %s,
|
||||||
|
@ -152,6 +169,7 @@ func updateCertificateMkcert() string {
|
||||||
return fmt.Sprintf(`
|
return fmt.Sprintf(`
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
"minProperties": 1,
|
"minProperties": 1,
|
||||||
"properties": {
|
"properties": {
|
||||||
"name": %s,
|
"name": %s,
|
||||||
|
|
Loading…
Reference in a new issue