Skip to content

Commit 4c7568c

Browse files
authored
Merge pull request #942 from ymohdriz/branch_issue_941
Test added for issue 941
2 parents 7702fcf + 75de4ee commit 4c7568c

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

modules/swagger-parser-v3/src/test/java/io/swagger/v3/parser/test/OpenAPIV3ParserTest.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,15 @@ public void issue682() throws Exception {
209209
Assert.assertNotNull(result.getOpenAPI().getPaths().get("/pets").getGet());
210210
}
211211

212+
@Test
213+
public void issue941() throws Exception {
214+
OpenAPIV3Parser parser = new OpenAPIV3Parser();
215+
216+
final OpenAPI result = parser.read("src/test/resources/sample/SwaggerPetstore.yaml");
217+
Assert.assertNotNull(result);
218+
assertEquals("Documentation de l'API élaboré par nos soins", result.getInfo().getDescription());
219+
}
220+
212221
@Test
213222
public void issueRelativeRefs2() throws Exception {
214223
OpenAPIV3Parser parser = new OpenAPIV3Parser();

modules/swagger-parser-v3/src/test/resources/sample/SwaggerPetstore.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ openapi: "3.0.0"
22
info:
33
version: 1.0.0
44
title: Swagger Petstore
5-
description: A sample API that uses a petstore as an example to demonstrate features in the OpenAPI 3.0 specification
5+
description: "Documentation de l'API élaboré par nos soins"
66
termsOfService: http://swagger.io/terms/
77
contact:
88
name: Swagger API Team

0 commit comments

Comments
 (0)