From fe29dd81f09d274e6ebddf0e46374e574c543aab Mon Sep 17 00:00:00 2001 From: Waqar Ahmed Date: Tue, 3 Dec 2024 15:18:35 +0500 Subject: [PATCH] Fix ACME registration query --- .../middlewared/api/v25_04_0/acme_registration.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/middlewared/middlewared/api/v25_04_0/acme_registration.py b/src/middlewared/middlewared/api/v25_04_0/acme_registration.py index e2f8329cda9a..a9420ae99d30 100644 --- a/src/middlewared/middlewared/api/v25_04_0/acme_registration.py +++ b/src/middlewared/middlewared/api/v25_04_0/acme_registration.py @@ -1,6 +1,6 @@ from pydantic import Field -from middlewared.api.base import BaseModel, single_argument_args +from middlewared.api.base import BaseModel, LongString, single_argument_args __all__ = [ @@ -13,6 +13,13 @@ class JWKCreate(BaseModel): public_exponent: int = 65537 +class ACMERegistrationBody(BaseModel): + id: int + contact: str + status: str + key: LongString + + class ACMERegistrationEntry(BaseModel): id: int uri: str @@ -22,6 +29,7 @@ class ACMERegistrationEntry(BaseModel): new_nonce_uri: str new_order_uri: str revoke_cert_uri: str + body: ACMERegistrationBody @single_argument_args('acme_registration_create')