You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by bd...@apache.org on 2023/01/11 15:04:55 UTC

[directory-scimple] branch develop updated: Fix typo in SchemaExtensionConfiguration

This is an automated email from the ASF dual-hosted git repository.

bdemers pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/directory-scimple.git


The following commit(s) were added to refs/heads/develop by this push:
     new bd74b4d1 Fix typo in SchemaExtensionConfiguration
     new c7b82e77 Merge pull request #224 from kjthorpe18/SchemaExtensionConfiguration-typo
bd74b4d1 is described below

commit bd74b4d1809ecc812203431c681e32be450234d1
Author: Kyle Thorpe <kt...@proofpoint.com>
AuthorDate: Tue Jan 10 21:39:39 2023 -0500

    Fix typo in SchemaExtensionConfiguration
---
 .../java/org/apache/directory/scim/core/schema/SchemaRegistry.java    | 4 ++--
 .../org/apache/directory/scim/core/schema/SchemaRegistryTest.java     | 2 +-
 .../main/java/org/apache/directory/scim/spec/schema/ResourceType.java | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/scim-core/src/main/java/org/apache/directory/scim/core/schema/SchemaRegistry.java b/scim-core/src/main/java/org/apache/directory/scim/core/schema/SchemaRegistry.java
index 2334d699..95ada68c 100644
--- a/scim-core/src/main/java/org/apache/directory/scim/core/schema/SchemaRegistry.java
+++ b/scim-core/src/main/java/org/apache/directory/scim/core/schema/SchemaRegistry.java
@@ -174,7 +174,7 @@ public class SchemaRegistry {
 
     if (extensionList != null) {
 
-      List<ResourceType.SchemaExtentionConfiguration> extensionSchemaList = new ArrayList<>();
+      List<ResourceType.SchemaExtensionConfiguration> extensionSchemaList = new ArrayList<>();
 
       for (Class<? extends ScimExtension> se : extensionList) {
 
@@ -184,7 +184,7 @@ public class SchemaRegistry {
           throw new InvalidExtensionException("Missing annotation: @ScimExtensionType on ScimExtensionL " + se.getSimpleName());
         }
 
-        ResourceType.SchemaExtentionConfiguration ext = new ResourceType.SchemaExtentionConfiguration();
+        ResourceType.SchemaExtensionConfiguration ext = new ResourceType.SchemaExtensionConfiguration();
         ext.setRequired(extensionType.required());
         ext.setSchemaUrn(extensionType.id());
         extensionSchemaList.add(ext);
diff --git a/scim-core/src/test/java/org/apache/directory/scim/core/schema/SchemaRegistryTest.java b/scim-core/src/test/java/org/apache/directory/scim/core/schema/SchemaRegistryTest.java
index ed640e8e..d48eb372 100644
--- a/scim-core/src/test/java/org/apache/directory/scim/core/schema/SchemaRegistryTest.java
+++ b/scim-core/src/test/java/org/apache/directory/scim/core/schema/SchemaRegistryTest.java
@@ -47,7 +47,7 @@ public class SchemaRegistryTest {
     userType.setSchemaUrn(ScimUser.SCHEMA_URI);
     userType.setName(ScimUser.RESOURCE_NAME);
     userType.setDescription("Top level ScimUser");
-    userType.setSchemaExtensions(List.of(new ResourceType.SchemaExtentionConfiguration().setSchemaUrn(ExampleObjectExtension.URN)));
+    userType.setSchemaExtensions(List.of(new ResourceType.SchemaExtensionConfiguration().setSchemaUrn(ExampleObjectExtension.URN)));
 
     ResourceType groupType = new ResourceType();
     groupType.setId(ScimGroup.RESOURCE_NAME);
diff --git a/scim-spec/scim-spec-schema/src/main/java/org/apache/directory/scim/spec/schema/ResourceType.java b/scim-spec/scim-spec-schema/src/main/java/org/apache/directory/scim/spec/schema/ResourceType.java
index 2bcab42a..a6e1d282 100644
--- a/scim-spec/scim-spec-schema/src/main/java/org/apache/directory/scim/spec/schema/ResourceType.java
+++ b/scim-spec/scim-spec-schema/src/main/java/org/apache/directory/scim/spec/schema/ResourceType.java
@@ -48,7 +48,7 @@ public class ResourceType extends ScimResourceWithOptionalId {
   public static final String SCHEMA_URI = "urn:ietf:params:scim:schemas:core:2.0:ResourceType";
 
   @Data
-  public static class SchemaExtentionConfiguration {
+  public static class SchemaExtensionConfiguration {
 
     @XmlElement(name = "schema")
     @Urn
@@ -76,7 +76,7 @@ public class ResourceType extends ScimResourceWithOptionalId {
   String schemaUrn;
 
   @XmlElement
-  List<SchemaExtentionConfiguration> schemaExtensions;
+  List<SchemaExtensionConfiguration> schemaExtensions;
   
   public ResourceType() {
     super(SCHEMA_URI, RESOURCE_NAME);