Johannes Kirschbauer
08f6cdc43f
Serde: fix enum type conversion, ensure roundtrip stability
2025-01-03 16:31:25 +01:00
Johannes Kirschbauer
4b0af71b9d
Serde: fixup & tests after changed serialization
2024-10-18 12:42:35 +02:00
Johannes Kirschbauer
f2a2b8e893
API: type all services with dict[str,Any] in python to reduce complexity.
2024-09-12 16:19:51 +02:00
Johannes Kirschbauer
5defa9d49d
serde/fix: round trip string sanitizing
2024-09-03 18:03:13 +02:00
Jörg Thalheim
f3a2b4d80e
fix all typing error in tests
2024-09-02 12:23:13 +02:00
clan-bot
0d7bb8f910
Merge pull request 'Clan-app: install machine' ( #1954 ) from hsjobeki/clan-core:hsjobeki-main into main
2024-08-22 08:21:10 +00:00
Johannes Kirschbauer
f7e64cc3b5
API: serde fix nullable fields should be allowed to be none
2024-08-21 17:53:25 +02:00
Qubasa
6c4d7494f6
clan-cli: Fix some type errors in tests
2024-08-21 15:48:43 +02:00
Aos Dabbagh
7281cef29e
fix(installer): Fix language check case
...
When attempting to follow the docs on the installer, this error comes
up:
```
$ clan flash --flake git+https://git.clan.lol/clan/clan-core \
--ssh-pubkey ~/.ssh/id_ed25519.pub \
--keymap us \
--language en_US.utf-8 \
--dry-run flash-installer
ERROR: Language 'en_US.utf-8' is not a valid language. Run 'clan flash --list-languages' to see a list of possible languages.
```
I only decided to clean up the docs, but I'm also okay with just
downcasing the locales in `list_possible_languages()`.
2024-08-21 08:15:49 +00:00
Johannes Kirschbauer
4940767fcc
Serde: extend deserializer to accept anything
2024-08-15 15:08:15 +02:00
Qubasa
f1d124dabd
clan-app: Finish flash view. clan-cli: Flash cli now verifies if language and keymap are valid.
2024-08-02 17:51:45 +02:00
Johannes Kirschbauer
6c5f9ca6db
Deserializer: add Literal; Annotated fields
2024-07-31 13:00:28 +02:00
Johannes Kirschbauer
4b2d1b7923
Deserializer: add Nullable fields
2024-07-30 14:26:13 +02:00
Johannes Kirschbauer
e21bfbc257
Deserializer: replace pydantic
2024-07-30 12:26:16 +02:00
Johannes Kirschbauer
d11e725a80
Clan-app: example disk view
2024-07-29 11:49:55 +02:00
Johannes Kirschbauer
3e5ceb0eeb
Serializer: use alias, make it configurable for different use cases
2024-07-29 09:01:06 +02:00
Johannes Kirschbauer
c648e647bf
Serde: add unit tests for all serialization and deserialization logic
2024-07-26 14:23:41 +02:00