Compare commits

...

2 commits

Author SHA1 Message Date
274486795a
data model: add name
Signed-off-by: Kiara Grouwstra <kiara@procolix.eu>
2025-09-14 19:53:37 +02:00
a21fa44c94 fix password inputs (#522)
- hide password input, closes #520
- allow empty password input, closes #521

Reviewed-on: Fediversity/Fediversity#522
2025-09-14 00:21:01 +02:00
2 changed files with 26 additions and 5 deletions

View file

@ -261,10 +261,17 @@ in
description = "Collection of deployment resources that can be required by applications and policed by hosting providers";
type = attrsOf (
submodule (
{ ... }:
resource:
{
_class = "fediversity-resource";
options = {
name = lib.mkOption {
type = lib.types.str;
description = "name of the resource";
readOnly = true;
default = resource.config._module.args.name;
defaultText = "name of the resource";
};
description = mkOption {
description = "Description of the resource to help application module authors and hosting providers to work with it";
type = types.str;
@ -304,6 +311,13 @@ in
submodule (application: {
_class = "fediversity-application";
options = {
name = lib.mkOption {
type = lib.types.str;
description = "name of the application";
readOnly = true;
default = application.config._module.args.name;
defaultText = "name of the application";
};
description = mkOption {
description = "Description to be shown in the application overview";
type = types.str;
@ -343,6 +357,13 @@ in
submodule (environment: {
_class = "fediversity-environment";
options = {
name = lib.mkOption {
type = lib.types.str;
description = "name of the environment";
readOnly = true;
default = environment.config._module.args.name;
defaultText = "name of the environment";
};
resources = mkOption {
description = ''
Resources made available by the hosting provider, and their policies.

View file

@ -13,14 +13,14 @@ buildPythonPackage rec {
_class = "package";
pname = "drf-pydantic";
version = "v2.7.1";
version = "v2.9.0";
pyproject = true;
src = fetchFromGitHub {
owner = "georgebv";
owner = "KiaraGrouwstra";
repo = pname;
rev = version;
hash = "sha256-ABtSoxj/+HHq4hj4Yb6bEiyOl00TCO/9tvBzhv6afxM=";
rev = "d21c879543bd106242bd7f86e79da1f668109579";
hash = "sha256-pk0/6BphIiXxR3cewBJ5nKii3kj3lDHLO9U9xqXDxI8=";
};
nativeBuildInputs = [