middleware/schema.go
Method SchemaMiddleware.Convert
has 7 return statements (exceeds 4 allowed). Open
Open
func (m *SchemaMiddleware) Convert(f chevron.Handler) (chevron.Handler, error) {
schema, err := loadSchema(m.path)
if err != nil {
return nil, err
}
exported type SchemaMiddleware should have comment or be unexported Open
Open
SchemaMiddleware struct {
- Exclude checks
exported type SchemaBadRequestFactory should have comment or be unexported Open
Open
SchemaBadRequestFactory func() response.Response
- Exclude checks
exported function GetJSONData should have comment or be unexported Open
Open
func GetJSONData(ctx context.Context) []byte {
- Exclude checks
exported var TokenJSONData should have comment or be unexported Open
Open
var TokenJSONData = tokenJSONData("chevron.middleware.json_data")
- Exclude checks
exported function NewSchemaMiddleware should have comment or be unexported Open
Open
func NewSchemaMiddleware(path string, configs ...SchemaConfigFunc) chevron.Middleware {
- Exclude checks
exported type SchemaUnprocessableEntityFactory should have comment or be unexported Open
Open
SchemaUnprocessableEntityFactory func([]gojsonschema.ResultError) response.Response
- Exclude checks
exported method SchemaMiddleware.Convert should have comment or be unexported Open
Open
func (m *SchemaMiddleware) Convert(f chevron.Handler) (chevron.Handler, error) {
- Exclude checks