Skip to content

Commit 0b67bc1

Browse files
committed
Refactor group validation schema: consolidate to a single YAML file and update references
1 parent ed40f32 commit 0b67bc1

File tree

5 files changed

+3
-36
lines changed

5 files changed

+3
-36
lines changed

packages/sprinkle-admin/app/assets/composables/useGroupApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import type {
1212
} from '../interfaces'
1313
import { useAlertsStore } from '@userfrosting/sprinkle-core/stores'
1414
import { useRuleSchemaAdapter } from '@userfrosting/sprinkle-core/composables'
15-
import schemaFile from '../../schema/requests/group/create.yaml?raw'
15+
import schemaFile from '../../schema/requests/group.yaml?raw'
1616

1717
/**
1818
* API Composable

packages/sprinkle-admin/app/schema/requests/group/create.yaml renamed to packages/sprinkle-admin/app/schema/requests/group.yaml

File renamed without changes.

packages/sprinkle-admin/app/schema/requests/group/edit-info.yaml

Lines changed: 0 additions & 33 deletions
This file was deleted.

packages/sprinkle-admin/app/src/Controller/Group/GroupCreateAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
class GroupCreateAction
4545
{
4646
// Request schema for client side form validation
47-
protected string $schema = 'schema://requests/group/create.yaml';
47+
protected string $schema = 'schema://requests/group.yaml';
4848

4949
/**
5050
* Inject dependencies.

packages/sprinkle-admin/app/src/Controller/Group/GroupEditAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
class GroupEditAction
4646
{
4747
// Request schema for client side form validation
48-
protected string $schema = 'schema://requests/group/edit-info.yaml';
48+
protected string $schema = 'schema://requests/group.yaml';
4949

5050
/**
5151
* Inject dependencies.

0 commit comments

Comments
 (0)