Skip to content

Commit

Permalink
Merge pull request #351 from radcortez/main
Browse files Browse the repository at this point in the history
Programmatically ignore unmapped properties
  • Loading branch information
goldmann authored Jan 30, 2024
2 parents 2d81069 + b3cd62b commit 50f58af
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* JBoss, Home of Professional Open Source.
* Copyright 2023 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jboss.sbomer.service.feature.sbom.config;

import io.smallrye.config.SmallRyeConfigBuilder;
import io.smallrye.config.SmallRyeConfigBuilderCustomizer;

public class SbomConfigBuilderCustomizer implements SmallRyeConfigBuilderCustomizer {
@Override
public void configBuilder(final SmallRyeConfigBuilder builder) {
builder.withMappingIgnore("sbomer.**");
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.jboss.sbomer.service.feature.sbom.config.SbomConfigBuilderCustomizer
4 changes: 0 additions & 4 deletions service/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ quarkus:
application:
version: ${buildNumber}

config:
mapping:
validate-unknown: false

# Make the startup a bit nicer
banner:
path: banner.txt
Expand Down

0 comments on commit 50f58af

Please sign in to comment.