@@ -119,7 +119,7 @@ trait JsonSchemas extends algebra.JsonSchemas:
119
119
* @param defaultValues List of the possible default values of the record fields (e.g.,
120
120
* `(Some(42), None)`)
121
121
*/
122
- inline def summonRecord [
122
+ private [generic] inline def summonRecord [
123
123
Types <: Tuple ,
124
124
Labels <: Tuple ,
125
125
Docs <: Tuple ,
@@ -173,7 +173,7 @@ trait JsonSchemas extends algebra.JsonSchemas:
173
173
* has a [[title @title ]] annotation, it is used as a title, otherwise
174
174
* the schema has no title
175
175
*/
176
- inline def summonTitle [A ]: Option [String ] =
176
+ private [generic] inline def summonTitle [A ]: Option [String ] =
177
177
summonFrom {
178
178
case annotation : Annotation [`title`, A ] => Some (annotation().value)
179
179
case _ => None
@@ -185,7 +185,7 @@ trait JsonSchemas extends algebra.JsonSchemas:
185
185
* name, otherwise it has the result of calling [[classTagToSchemaName ]]
186
186
* with a `ClassTag[A]`.
187
187
*/
188
- inline def summonName [A ]: Option [String ] =
188
+ private [generic] inline def summonName [A ]: Option [String ] =
189
189
summonFrom {
190
190
case annotation : Annotation [`name`, A ] => Some (annotation().value)
191
191
case annotation : Annotation [`unnamed`, A ] => None
@@ -196,7 +196,7 @@ trait JsonSchemas extends algebra.JsonSchemas:
196
196
* has a [[docs @docs ]] annotation, it is used as a description,
197
197
* otherwise the schema has no description.
198
198
*/
199
- inline def summonDescription [A ]: Option [String ] =
199
+ private [generic] inline def summonDescription [A ]: Option [String ] =
200
200
summonFrom {
201
201
case annotation : Annotation [`docs`, A ] => Some (annotation().text)
202
202
case _ => None
@@ -344,7 +344,7 @@ private object Defaults:
344
344
type DefaultValues = defaultValuesType
345
345
val defaultValues : DefaultValues = $defaultValuesValue
346
346
}
347
- case _ => report.throwError (s " Invalid type ${tpe.show}. Expecting a case class. " )
347
+ case _ => report.errorAndAbort (s " Invalid type ${tpe.show}. Expecting a case class. " )
348
348
end summonDefaultsMacro
349
349
350
350
end Defaults
0 commit comments