Skip to content

Commit 1efa73c

Browse files
tsegismontpk-work
authored andcommitted
Fix relative paths
3 dots could be confusing Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
1 parent c4a4525 commit 1efa73c

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

src/main/java/examples/ContractExamples.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import io.vertx.openapi.contract.Parameter;
2020
import io.vertx.openapi.contract.Path;
2121
import io.vertx.openapi.mediatype.ContentAnalyserFactory;
22-
import io.vertx.openapi.mediatype.MediaTypeRegistration;
2322
import io.vertx.openapi.mediatype.MediaTypePredicate;
2423
import io.vertx.openapi.mediatype.MediaTypeRegistry;
2524
import io.vertx.openapi.mediatype.impl.DefaultMediaTypeRegistration;
@@ -30,13 +29,13 @@
3029
public class ContractExamples {
3130

3231
public void createContract(Vertx vertx) {
33-
String pathToContract = ".../.../myContract.json"; // json or yaml
32+
String pathToContract = "../../myContract.json"; // json or yaml
3433
Future<OpenAPIContract> contract = OpenAPIContract.from(vertx, pathToContract);
3534
}
3635

3736
public void createContractAdditionalFiles(Vertx vertx) {
38-
String pathToContract = ".../.../myContract.json"; // json or yaml
39-
String pathToComponents = ".../.../myComponents.json"; // json or yaml
37+
String pathToContract = "../../myContract.json"; // json or yaml
38+
String pathToComponents = "../../myComponents.json"; // json or yaml
4039
Map<String, String> additionalContractFiles = new HashMap<>();
4140
additionalContractFiles.put("https://example.com/pet-components",
4241
pathToComponents);
@@ -68,8 +67,8 @@ private OpenAPIContract getContract() {
6867
}
6968

7069
public void createContractWithCustomMediaTypes(Vertx vertx) {
71-
String pathToContract = ".../.../myContract.json"; // json or yaml
72-
String pathToComponents = ".../.../myComponents.json"; // json or yaml
70+
String pathToContract = "../../myContract.json"; // json or yaml
71+
String pathToComponents = "../../myComponents.json"; // json or yaml
7372

7473
Future<OpenAPIContract> contract =
7574
OpenAPIContract.builder(vertx)

0 commit comments

Comments
 (0)