ToKeyedSchemas

sttp.tapir.docs.apispec.schema.ToKeyedSchemas$
See theToKeyedSchemas companion class

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def unique(objs: Iterable[KeyedSchema]): Iterable[KeyedSchema]

Keeps only the first object data for each SchemaKey. In case of recursive objects, the first one is the most complete as it contains the built-up structure, unlike subsequent ones, which only represent leaves (#354, later extended for #2358, so that the schemas have a secondary key - the product fields (if any)).

Keeps only the first object data for each SchemaKey. In case of recursive objects, the first one is the most complete as it contains the built-up structure, unlike subsequent ones, which only represent leaves (#354, later extended for #2358, so that the schemas have a secondary key - the product fields (if any)).

Attributes