swagger-scala-module


License

License

Categories

Categories

Scala Languages Akka Container Microservices Reactive libraries Swagger Program Interface REST Frameworks
GroupId

GroupId

com.github.swagger-akka-http
ArtifactId

ArtifactId

swagger-scala-module_2.10
Last Version

Last Version

2.1.3
Release Date

Release Date

Type

Type

jar
Description

Description

swagger-scala-module
swagger-scala-module
Project URL

Project URL

https://github.com/swagger-akka-http/swagger-scala-module
Project Organization

Project Organization

com.github.swagger-akka-http
Source Code Management

Source Code Management

https://github.com/swagger-akka-http/swagger-scala-module

Download swagger-scala-module_2.10

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.swagger-akka-http/swagger-scala-module_2.10/ -->
<dependency>
    <groupId>com.github.swagger-akka-http</groupId>
    <artifactId>swagger-scala-module_2.10</artifactId>
    <version>2.1.3</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.swagger-akka-http/swagger-scala-module_2.10/
implementation 'com.github.swagger-akka-http:swagger-scala-module_2.10:2.1.3'
// https://jarcasting.com/artifacts/com.github.swagger-akka-http/swagger-scala-module_2.10/
implementation ("com.github.swagger-akka-http:swagger-scala-module_2.10:2.1.3")
'com.github.swagger-akka-http:swagger-scala-module_2.10:jar:2.1.3'
<dependency org="com.github.swagger-akka-http" name="swagger-scala-module_2.10" rev="2.1.3">
  <artifact name="swagger-scala-module_2.10" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.swagger-akka-http', module='swagger-scala-module_2.10', version='2.1.3')
)
libraryDependencies += "com.github.swagger-akka-http" % "swagger-scala-module_2.10" % "2.1.3"
[com.github.swagger-akka-http/swagger-scala-module_2.10 "2.1.3"]

Dependencies

compile (4)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.10.7
org.scala-lang : scala-reflect jar 2.10.7
io.swagger.core.v3 : swagger-core jar 2.1.4
com.fasterxml.jackson.module : jackson-module-scala_2.10 jar 2.11.2

test (2)

Group / Artifact Type Version
org.scalatest : scalatest_2.10 jar 3.2.2
org.slf4j : slf4j-simple jar 1.7.30

Project Modules

There are no modules declared in this project.

Swagger Scala Module

Build Status Maven Central

This is a fork of https://github.com/swagger-api/swagger-scala-module.

Release Supports
2.1.3 OpenAPI 3.0.1 / Swagger-Core 2.0.x.
1.1.0 OpenAPI 2 / Swagger-Core 1.6.x.

Usage

To enable the swagger-scala-module, include the appropriate version in your project:

  "com.github.swagger-akka-http" %% "swagger-scala-module" % "2.1.3"

How does it work?

Including the library in your project allows the swagger extension module to discover this module, bringing in the appropriate jackson library in the process. You can then use scala classes and objects in your swagger project.

Treatment of Option and required

All properties, besides those wrapped in Option or explicitly set via annotations @Schema(required = false, implementation = classOf[Int]), default to required = true in the generated swagger model. See #7

case class AddOptionRequest(number: Int, @Schema(required = false, implementation = classOf[Int]) number2: Option[Int] = None)

License

Copyright 2016 SmartBear Software, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Versions

Version
2.1.3
2.1.2
2.1.1
2.1.0
2.0.7
2.0.6
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.1.0