Rename NoSupportYet => NotSupportedYet

This commit is contained in:
Marko Milić 2020-03-27 15:09:38 +01:00
parent d6056e1206
commit 044608fa16
2 changed files with 4 additions and 4 deletions

View File

@ -3740,9 +3740,9 @@ object SwaggerDefinitionsJSON {
//The common error or success format.
//Just some helper format to use in Json
case class NoSupportYet()
case class NotSupportedYet()
val noSupportYet = NoSupportYet()
val notSupportedYet = NotSupportedYet()
lazy val allFields: Seq[AnyRef] ={
val allFieldsThisFile = ReflectUtils.getValues(this, List(nameOf(allFields)))

View File

@ -187,7 +187,7 @@ object SwaggerJSONFactory {
def setReferenceObject(rd: ResourceDoc): Option[ResponseObjectSchemaJson] = {
val caseClassName = rd.successResponseBody match {
case s:scala.Product => s.getClass.getSimpleName
case _ => "NoSupportYet"
case _ => "NotSupportedYet"
}
Some(ResponseObjectSchemaJson(s"#/definitions/${caseClassName}"))
}
@ -402,7 +402,7 @@ object SwaggerJSONFactory {
parameters ={
val caseClassName = rd.exampleRequestBody match {
case s:scala.Product => s.getClass.getSimpleName
case _ => "NoSupportYet"
case _ => "NotSupportedYet"
}//Here we only use `EmptyClassJson` to make sure the json body. now, for connector swagger, the get method also has body.
// if ("EmptyClassJson".equals(caseClassName)){
// pathParameters