Johannes Kirschbauer
a42c758ab5
Serde: fix enum type conversion, ensure roundtrip stability
2025-01-03 16:31:25 +01:00
Johannes Kirschbauer
3bc2991903
Serde: fixup & tests after changed serialization
2024-10-18 12:42:35 +02:00
Johannes Kirschbauer
e3d85fc2b8
API: type all services with dict[str,Any] in python to reduce complexity.
2024-09-12 16:19:51 +02:00
Johannes Kirschbauer
caad48682d
serde/fix: round trip string sanitizing
2024-09-03 18:03:13 +02:00
Jörg Thalheim
b24cbb18b7
fix all typing error in tests
2024-09-02 12:23:13 +02:00
clan-bot
68c25d6aeb
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
b7d0314826
API: serde fix nullable fields should be allowed to be none
2024-08-21 17:53:25 +02:00
Qubasa
19fe0432d9
clan-cli: Fix some type errors in tests
2024-08-21 15:48:43 +02:00
Aos Dabbagh
1e96f59ecd
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
cacd49ff54
Serde: extend deserializer to accept anything
2024-08-15 15:08:15 +02:00
Qubasa
3e9ebbc90f
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
8ddfaba599
Deserializer: add Literal; Annotated fields
2024-07-31 13:00:28 +02:00
Johannes Kirschbauer
9db6cb8b6f
Deserializer: add Nullable fields
2024-07-30 14:26:13 +02:00
Johannes Kirschbauer
5d8fa57f23
Deserializer: replace pydantic
2024-07-30 12:26:16 +02:00
Johannes Kirschbauer
4be5ed28db
Clan-app: example disk view
2024-07-29 11:49:55 +02:00
Johannes Kirschbauer
395a7fc70e
Serializer: use alias, make it configurable for different use cases
2024-07-29 09:01:06 +02:00
Johannes Kirschbauer
d7b6fc16a4
Serde: add unit tests for all serialization and deserialization logic
2024-07-26 14:23:41 +02:00