Skip to content

Commit

Permalink
SHIBUI-1788
Browse files Browse the repository at this point in the history
Changed removing whitespace to name just for json schema and refs
  • Loading branch information
chasegawa committed Jun 28, 2021
1 parent b93526a commit 378d8ac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
package edu.internet2.tier.shibboleth.admin.ui.service

import edu.internet2.tier.shibboleth.admin.ui.configuration.CustomPropertiesConfiguration
import edu.internet2.tier.shibboleth.admin.ui.domain.IRelyingPartyOverrideProperty
import edu.internet2.tier.shibboleth.admin.ui.security.model.User
import edu.internet2.tier.shibboleth.admin.ui.security.service.UserService
import org.springframework.beans.factory.annotation.Autowired
import org.apache.commons.lang3.StringUtils

/**
* @author Bill Smith (wsmith@unicon.net)
Expand All @@ -31,7 +27,7 @@ class JsonSchemaBuilderService {
customPropertiesConfiguration.getOverrides().each {
def property
if (it['displayType'] == 'list' || it['displayType'] == 'set' || it['displayType'] == 'selection_list') {
property = [$ref: '#/definitions/' + it['name']]
property = [$ref: '#/definitions/' + StringUtils.strip(it['name'])]
} else {
property =
[title : it['displayName'],
Expand Down Expand Up @@ -65,7 +61,7 @@ class JsonSchemaBuilderService {


definition['items'] = items
json[(String) it['name']] = definition
json[StringUtils.strip((String) it['name'])] = definition
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,6 @@ public void setDisplayType(String displayType) {
// This is here to comply with the interface only and should not be used to change the value in this implementation
}

@Override
public void setName(String name) {
this.name = StringUtils.strip(name);
}

public void updateExamplesList() {
examples = customAttrListDefinitions;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,4 @@ public void setDefaultValues(Set<String> defaults) {
defaultValues = defaults;
examples = defaults;
}

@Override
public void setName(String name) {
this.name = StringUtils.strip(name);
}
}

0 comments on commit 378d8ac

Please sign in to comment.