app/schemas/reservation_schema.rb
Method jsonschema
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Wontfix
Wontfix
def jsonschema(minimum: 1, maximum: 10, default: 1, stops: [])
{
title: 'Prenota la trasferta',
description: schema_description(maximum),
type: 'object',
Method ui_schema
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Wontfix
Wontfix
def ui_schema
{
authenticity_token: { 'ui:widget': 'hidden' },
event_id: { 'ui:widget': 'hidden' },
user_id: { 'ui:widget': 'hidden' },