[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Proposal for removing some serialization limitations of define-confi
From: |
Attila Lendvai |
Subject: |
Re: Proposal for removing some serialization limitations of define-configuration |
Date: |
Mon, 24 Jun 2024 06:25:03 +0000 |
> authority letsencrypt {
> api url "https://acme-v02.api.letsencrypt.org/directory"
> account key "/some/path.pem" rsa
> contact "mailto:who@knows"
> }
i have no time to verify this right now, but i think you should be able to
write only the header and the wrapper in your custom serializer, and then
iterate through the remaining fields of the config record, i.e. sans the `name`
field.
you can inspect the current serializer for how to iterate through the fields,
or better yet, how to call it recursively with the remaining fields.
--
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
“Government does not grow by seizing our freedoms, but by assuming our
responsibilities.”
— Michael Cloud