-
Notifications
You must be signed in to change notification settings - Fork 531
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into bugfix/issue-1961
- Loading branch information
Showing
6 changed files
with
72 additions
and
3 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
15 changes: 15 additions & 0 deletions
15
modules/swagger-parser-v3/src/test/java/io/swagger/v3/parser/ObjectMapperTest.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,15 @@ | ||
package io.swagger.v3.parser; | ||
|
||
import com.fasterxml.jackson.databind.ObjectMapper; | ||
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; | ||
import org.junit.Assert; | ||
import org.junit.Test; | ||
|
||
public class ObjectMapperTest { | ||
@Test | ||
public void testJavaTimeModule() { | ||
ObjectMapper mapper = ObjectMapperFactory.createJson(); | ||
Assert.assertTrue("JavaTimeModule found?", | ||
mapper.getRegisteredModuleIds().contains(new JavaTimeModule().getTypeId())); | ||
} | ||
} |
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
8 changes: 8 additions & 0 deletions
8
modules/swagger-parser-v3/src/test/resources/issue-2037/openapi.yaml
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,8 @@ | ||
openapi: 3.0.3 | ||
info: | ||
title: title | ||
version: LATEST | ||
|
||
paths: | ||
/get: | ||
$ref: 'paths/get.yaml#/endpoint' |
20 changes: 20 additions & 0 deletions
20
modules/swagger-parser-v3/src/test/resources/issue-2037/paths/get.yaml
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,20 @@ | ||
endpoint: | ||
get: | ||
operationId: get | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/RequestBodyRef' | ||
responses: | ||
'200': | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/ResponsesRef' | ||
|
||
RequestBodyRef: | ||
type: string | ||
|
||
ResponsesRef: | ||
type: string |