Skip to content

Commit 6f48690

Browse files
Fix for resource types endpoint (limosa-io#116)
1 parent 3423930 commit 6f48690

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Http/Controllers/ResourceTypesController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function __construct()
2424

2525
$resourceTypes[] = new ResourceType(
2626
$value['singular'],
27-
$key,
27+
$value['singular'],
2828
$key,
2929
$value['description'] ?? null,
3030
$schemas[0]->getName(),

src/Http/Controllers/SchemaController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function getSchemas()
1616
$schemaNodes = [];
1717
$schemas = [];
1818

19-
foreach ($config as $key => $value) {
19+
foreach ($config as $value) {
2020
$value['map']->generateSchema();
2121

2222
$schemaNodes = array_merge($schemaNodes, $value['map']->getSchemaNodes());

tests/ResourceTypesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function testGetOne(){
4545
"urn:ietf:params:scim:schemas:core:2.0:ResourceType"
4646
],
4747
"id" => "User",
48-
"name" => "Users",
48+
"name" => "User",
4949
"endpoint" => "http://localhost/scim/v2/Users",
5050
"description" => "User Account",
5151
"schema" => "urn:ietf:params:scim:schemas:core:2.0:User",

0 commit comments

Comments
 (0)