fixed minimum check
removed error on using $ref on root schema
go fmt