You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Schema derivation for case classes depends on Schema[T] being available for all the components. Not just that it could be available -- for exotic types it actually has to exist beforehand (see coproduct types). We should provide a tapir module that provides Schema implicits for all the data types in stac4s. Most of it will be derivable.
Some of the derivations will be incorrect though. for instance the automatic derivation thinks that TwoDimBbox is an object:
This is to support downstream not having to create stac4s schemas in different places, since Schema[T] + Codec[T] in the json lib is normally sufficient for Codec[T] in tapir
The text was updated successfully, but these errors were encountered:
jcahail
changed the title
Create sttp module
Create tapir module
May 14, 2020
Improvement
Schema
derivation for case classes depends onSchema[T]
being available for all the components. Not just that it could be available -- for exotic types it actually has to exist beforehand (see coproduct types). We should provide atapir
module that providesSchema
implicits for all the data types instac4s
. Most of it will be derivable.Some of the derivations will be incorrect though. for instance the automatic derivation thinks that
TwoDimBbox
is an object:And the automatic derivation for
StacLink
is anull
:Notes + Context
This is to support downstream not having to create
stac4s
schemas in different places, sinceSchema[T]
+Codec[T]
in the json lib is normally sufficient forCodec[T]
in tapirThe text was updated successfully, but these errors were encountered: