License

zio.blocks.openapi.License
See theLicense companion object
final case class License(name: String, identifier: Option[String] = ..., url: Option[String] = ..., extensions: ChunkMap[String, Json] = ...)

License information for the exposed API. Optional SPDX license expression (identifier) and a URL to the license are mutually exclusive per the OpenAPI spec.

Value parameters

extensions

Specification extensions (x-* fields). These allow adding additional properties beyond the standard OpenAPI fields.

identifier

An optional SPDX license expression (identifier)

name

REQUIRED. The license name used for the API.

url

An optional URL to the license.

Attributes

Companion
object
Source
OpenAPI.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala