Skip to content

Commit

Permalink
fix for application validation of custom app with schema to disallow …
Browse files Browse the repository at this point in the history
…functions
  • Loading branch information
sergey-zinchenko committed Dec 27, 2024
1 parent c2131ba commit cd96ebf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ private void prepareApplication(ResourceDescriptor resource, Application applica
verifyApplication(resource);

if (application.getCustomAppSchemaId() != null) {
if (application.getEndpoint() != null) {
if (application.getEndpoint() != null || application.getFunction() != null) {
throw new IllegalArgumentException("Endpoint must not be set for custom application");
}
} else if (application.getEndpoint() == null && application.getFunction() == null) {
Expand Down

0 comments on commit cd96ebf

Please sign in to comment.