SchemaProvider is an interface that can be implemented by types to provide a custom schema for themselves, overriding the built-in schema generation. This can be used by custom types with their own special serialization rules.
| 728 | // a custom schema for themselves, overriding the built-in schema generation. |
| 729 | // This can be used by custom types with their own special serialization rules. |
| 730 | type SchemaProvider interface { |
| 731 | Schema(r Registry) *Schema |
| 732 | } |
| 733 | |
| 734 | // SchemaTransformer is an interface that types can implement to transform |
| 735 | // the generated schema as needed. This can be used to leverage the |
no outgoing calls
no test coverage detected
searching dependent graphs…