Skip to content

Commit 0d79ebf

Browse files
refactor(master): Major refactor of Model and Visitors
- Refactored the model package, simplifying it and eliminating unnecessary code. Additionally, the rawContent has been removed in favour of the ComponentBase which abstracts the additional parameters that json files can have. - Improved visitors structure. - Added visitors implementation to resolve descriptor references. BREAKING CHANGE: The model pojos are not backward compatible.
1 parent 0bef450 commit 0d79ebf

File tree

146 files changed

+2572
-8588
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

146 files changed

+2572
-8588
lines changed

pom.xml

Lines changed: 12 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ License.
2828
<artifactId>odm-specification-dpdescriptor-parser</artifactId>
2929
<name>ODM Specification Data Product Descriptor Parser</name>
3030
<description>Specification Parser for Data Product Descriptor of Open Data Mesh</description>
31-
<version>1.0.6</version>
31+
<version>2.0.0</version>
3232

3333
<distributionManagement>
3434
<repository>
@@ -63,32 +63,7 @@ License.
6363

6464

6565
<dependencies>
66-
<dependency>
67-
<groupId>com.google.guava</groupId>
68-
<artifactId>guava</artifactId>
69-
<version>32.1.1-jre</version>
70-
</dependency>
71-
<!-- Lombok -->
72-
<dependency>
73-
<groupId>org.projectlombok</groupId>
74-
<artifactId>lombok</artifactId>
75-
<version>1.18.24</version>
76-
<scope>provided</scope>
77-
</dependency>
78-
79-
<!-- Json Schema handling -->
80-
<dependency>
81-
<groupId>com.networknt</groupId>
82-
<artifactId>json-schema-validator</artifactId>
83-
<version>1.0.72</version>
84-
</dependency>
8566

86-
<!-- YAML & JSON handling -->
87-
<dependency>
88-
<groupId>org.yaml</groupId>
89-
<artifactId>snakeyaml</artifactId>
90-
<version>2.0</version>
91-
</dependency>
9267
<dependency>
9368
<groupId>com.fasterxml.jackson.core</groupId>
9469
<artifactId>jackson-core</artifactId>
@@ -110,32 +85,6 @@ License.
11085
<version>2.15.1</version>
11186
</dependency>
11287

113-
<!-- Swagger -->
114-
<dependency>
115-
<groupId>io.swagger.core.v3</groupId>
116-
<artifactId>swagger-annotations</artifactId>
117-
<version>2.2.2</version>
118-
</dependency>
119-
120-
<!-- Commons -->
121-
<dependency>
122-
<groupId>commons-io</groupId>
123-
<artifactId>commons-io</artifactId>
124-
<version>2.11.0</version>
125-
</dependency>
126-
127-
<dependency>
128-
<groupId>org.eclipse.jgit</groupId>
129-
<artifactId>org.eclipse.jgit</artifactId>
130-
<version>6.6.0.202305301015-r</version>
131-
</dependency>
132-
<dependency> <!-- Enable SSH transport -->
133-
<groupId>org.eclipse.jgit</groupId>
134-
<artifactId>org.eclipse.jgit.ssh.apache</artifactId>
135-
<version>6.6.0.202305301015-r</version>
136-
</dependency>
137-
138-
13988
<!-- Test -->
14089
<dependency>
14190
<groupId>org.assertj</groupId>
@@ -155,6 +104,17 @@ License.
155104
<version>5.8.1</version>
156105
<scope>test</scope>
157106
</dependency>
107+
<dependency>
108+
<groupId>org.slf4j</groupId>
109+
<artifactId>slf4j-api</artifactId>
110+
<version>2.0.7</version>
111+
</dependency>
112+
<dependency>
113+
<groupId>org.jetbrains</groupId>
114+
<artifactId>annotations</artifactId>
115+
<version>24.0.1</version>
116+
<scope>compile</scope>
117+
</dependency>
158118
</dependencies>
159119

160120
<build>

src/main/java/org/opendatamesh/dpds/api/ApiParser.java

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/main/java/org/opendatamesh/dpds/api/ApiParserFactory.java

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/main/java/org/opendatamesh/dpds/api/AsyncApiParser.java

Lines changed: 0 additions & 131 deletions
This file was deleted.

0 commit comments

Comments
 (0)