Skip to content

Commit

Permalink
[MODPUBSUB-295] - Review and cleanup Module Descriptor for mod-pubsub (
Browse files Browse the repository at this point in the history
…#281)

* [MODPUBSUB-295] - Review and cleanup Module Descriptor for mod-pubsub

* [MODPUBSUB-295] - Review and cleanup Module Descriptor for mod-pubsub

* [MODPUBSUB-295] - Review and cleanup Module Descriptor for mod-pubsub

* [MODPUBSUB-295] - Review and cleanup Module Descriptor for mod-pubsub
  • Loading branch information
azizbekxm authored Nov 22, 2024
1 parent 9949586 commit d6c6be4
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 5 deletions.
14 changes: 10 additions & 4 deletions descriptors/ModuleDescriptor-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
],
"pathPattern": "/pubsub/event-types",
"permissionsRequired": [
"pubsub.event-types.get"
"pubsub.event-types.collection.get"
]
},
{
Expand All @@ -44,7 +44,7 @@
],
"pathPattern": "/pubsub/event-types/{eventTypeName}",
"permissionsRequired": [
"pubsub.event-types.get"
"pubsub.event-types.item.get"
]
},
{
Expand Down Expand Up @@ -220,9 +220,15 @@
],
"permissionSets": [
{
"permissionName": "pubsub.event-types.get",
"permissionName": "pubsub.event-types.collection.get",
"displayName": "PubSub - get Event Descriptor collection",
"description": "Get Event Descriptor collection"
},
{
"permissionName": "pubsub.event-types.item.get",
"displayName": "PubSub - get Event Descriptor",
"description": "Get Event Descriptor"
"description": "Get Event Descriptor",
"replaces": ["pubsub.event-types.get"]
},
{
"permissionName": "pubsub.event-types.post",
Expand Down
10 changes: 10 additions & 0 deletions mod-pubsub-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,16 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.folio</groupId>
<artifactId>folio-module-descriptor-validator</artifactId>
<version>${folio-module-descriptor-validator.version}</version>
<executions>
<execution>
<phase/> <!-- skip execution, run in parent only -->
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down
10 changes: 10 additions & 0 deletions mod-pubsub-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,16 @@
</configuration>
</plugin>

<plugin>
<groupId>org.folio</groupId>
<artifactId>folio-module-descriptor-validator</artifactId>
<version>${folio-module-descriptor-validator.version}</version>
<executions>
<execution>
<phase/> <!-- skip execution, run in parent only -->
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down
16 changes: 15 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
<main.basedir>${project.basedir}</main.basedir>
<ramlfiles_path>${basedir}/ramls</ramlfiles_path>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<!--Folio dependencies properties-->
<folio-module-descriptor-validator.version>1.0.1</folio-module-descriptor-validator.version>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -246,7 +249,18 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.folio</groupId>
<artifactId>folio-module-descriptor-validator</artifactId>
<version>${folio-module-descriptor-validator.version}</version>
<executions>
<execution>
<goals>
<goal>validate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit d6c6be4

Please sign in to comment.