-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
245 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...rver/src/main/java/dev/hltech/dredd/interfaces/rest/contracts/NewServiceContractsDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package dev.hltech.dredd.interfaces.rest.contracts; | ||
|
||
import lombok.Data; | ||
|
||
import java.io.Serializable; | ||
import java.util.Map; | ||
|
||
@Data | ||
public class NewServiceContractsDto { | ||
|
||
private final String name; | ||
private final String version; | ||
|
||
private final Map<String, ContractDto> capabilities; | ||
private final Map<String, Map<String, ContractDto>> expectations; | ||
|
||
@Data | ||
public static class ContractDto implements Serializable { | ||
private final String value; | ||
private final String mimeType; | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...ver/src/main/java/dev/hltech/dredd/interfaces/rest/contracts/NewServiceContractsForm.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package dev.hltech.dredd.interfaces.rest.contracts; | ||
|
||
import lombok.Data; | ||
|
||
import java.io.Serializable; | ||
import java.util.Map; | ||
|
||
@Data | ||
public class NewServiceContractsForm { | ||
|
||
private final Map<String, ContractForm> capabilities; | ||
private final Map<String, Map<String, ContractForm>> expectations; | ||
|
||
@Data | ||
public static class ContractForm implements Serializable { | ||
private final String value; | ||
private final String mimeType; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 2 additions & 7 deletions
9
...server/src/main/java/dev/hltech/dredd/interfaces/rest/contracts/ServiceContractsForm.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,12 @@ | ||
package dev.hltech.dredd.interfaces.rest.contracts; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.util.Map; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public class ServiceContractsForm { | ||
|
||
private Map<String, String> capabilities; | ||
private Map<String, Map<String, String>> expectations; | ||
|
||
private final Map<String, String> capabilities; | ||
private final Map<String, Map<String, String>> expectations; | ||
} |
18 changes: 18 additions & 0 deletions
18
judge-d-server/src/main/resources/db/changelog/db.changelog-0.3.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<databaseChangeLog | ||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog" | ||
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext | ||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd | ||
http://www.liquibase.org/xml/ns/dbchangelog | ||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.4.xsd"> | ||
|
||
<changeSet id="add-mime-type-to-contracts-0.3" author="Filip Lazarski"> | ||
<addColumn tableName="capabilities"> | ||
<column name="mime_type" type="text"/> | ||
</addColumn> | ||
<addColumn tableName="expectations"> | ||
<column name="mime_type" type="text"/> | ||
</addColumn> | ||
</changeSet> | ||
</databaseChangeLog> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.