-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
1 changed file
with
7 additions
and
10 deletions.
There are no files selected for viewing
17 changes: 7 additions & 10 deletions
17
...les/swagger-jaxrs/src/test/scala/com/wordnik/test/swagger/core/testdata/SampleInput.scala
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,19 +1,16 @@ | ||
package com.wordnik.test.swagger.core.testdata | ||
|
||
import javax.xml.bind.annotation.XmlRootElement._ | ||
import reflect.BeanProperty | ||
import javax.xml.bind.annotation.XmlElement._ | ||
import javax.xml.bind.annotation.{XmlAccessType, XmlAccessorType, XmlElement, XmlRootElement} | ||
import annotation.target.field | ||
|
||
import scala.reflect.BeanProperty | ||
|
||
import scala.annotation.target.field | ||
|
||
@XmlRootElement(name = "sampleInput") | ||
@XmlAccessorType(XmlAccessType.NONE) | ||
case class SampleInput ( | ||
@(XmlElement @field)(name = "name") @BeanProperty | ||
var name: String, | ||
|
||
@(XmlElement @field)(name = "value") @BeanProperty | ||
var value: String | ||
){ | ||
@(XmlElement @field)(name = "name") @BeanProperty var name: String, | ||
@(XmlElement @field)(name = "value") @BeanProperty var value: String | ||
) { | ||
def this() = this(null,null) | ||
} |