profile
viewpoint
Luiz Fonseca luizfonseca Berlin, Germany http://about.luiz.cc CTO @lyttco and @evermood. Always teaching and learning.

luizfonseca/brazil-api 7

A simple API to handle the most common verifications in forms like CEP, email and others through SSL.

luizfonseca/Correios-Class 4

Classe para interação com o webservice dos Correios.

luizfonseca/Coding-Dojo 3

What is a Coding Dojo? This page is online since Feb. 2011

luizfonseca/Caderno-web 2

A notetaking app for developers, designers and writers alike that uses Git as Storage

luizfonseca/canvas 2

Classe PHP para manipulação de imagens

luizfonseca/EvilCrawler 2

It's evil. It takes everything from you.

luizfonseca/bourbon 1

Bourbon is a set of vanilla Sass mixins using SCSS syntax

luizfonseca/catarse 1

The first open source crowdfunding platform for creative projects in the world

luizfonseca/clean-architecture 1

An investigation of possible Clean Architecture structure in a Roda/Sinatra (ruby) App

luizfonseca/compass-960-plugin 1

Sass Port of 960.gs as part of the Compass Stylesheet Framework.

startedsamtecspg/articulate

started time in 3 days

startedwestonganger/paper_trail-association_tracking

started time in 5 days

startedgregberge/loadable-components

started time in 6 days

startedshakacode/react_on_rails

started time in 6 days

startedreviewdog/reviewdog

started time in 6 days

startedgithub/view_component

started time in 6 days

startedfeathersjs-ecosystem/feathers-nedb

started time in 6 days

startedfeathersjs/feathers

started time in 10 days

starteddabreegster/abstreet

started time in 12 days

push eventluizfonseca/my-personal-computer

Luiz Fonseca

commit sha aae45551c0d601bca5516cd2a5a21974babdd857

Update README.md

view details

push time in 12 days

startedplausible/analytics

started time in 12 days

startedWorkpop/typed-validation

started time in 14 days

startedgithub/super-linter

started time in 14 days

push eventluizfonseca/my-personal-computer

Luiz Fonseca

commit sha 1b369bbde4c09bb8e98bfdc58414c46ee113ad9c

Add calculator app spec and updated readme

view details

push time in 15 days

push eventluizfonseca/my-personal-computer

Luiz Fonseca

commit sha 27d0aaf159945d782352c666bd35cfcc73c22d8f

Add login class and login spec

view details

push time in 15 days

push eventluizfonseca/my-personal-computer

Luiz Fonseca

commit sha 523c5442ef2e41670d3f99407fac407554e271ff

Update README

view details

push time in 16 days

push eventluizfonseca/my-personal-computer

Luiz Fonseca

commit sha fe11ddf4afdfb3eacf9b48d7ebcc9848a28c78d7

Add default files to the project

view details

Luiz Fonseca

commit sha baf4679f11402867e6d90c45e55d087887547768

Add section about OS

view details

push time in 16 days

create barnchluizfonseca/my-personal-computer

branch : master

created branch time in 16 days

created repositoryluizfonseca/my-personal-computer

A ruby project built to help Junior Developers learn more about basic structures, controls & more.

created time in 16 days

startedqiniu/goplus

started time in 16 days

startedschettino/react-request-hook

started time in 17 days

starteddavishmcclurg/json_schemer

started time in 17 days

startedGoogleChrome/lighthouse-ci

started time in 18 days

startedgjtorikian/graphql-docs

started time in 18 days

startedkrisleech/wisper-activerecord

started time in 20 days

startedtreosh/web-vitals-reporter

started time in 24 days

startedzalando/tailor

started time in 25 days

startedH-M-H/Weylus

started time in a month

startedKuroLabs/stegcloak

started time in a month

startedant-design/ant-design

started time in a month

startedjwt/ruby-jwt

started time in a month

startedevanw/esbuild

started time in a month

starteddanielpclark/rutie

started time in a month

startedsveltejs/sapper

started time in a month

starteddiesel-rs/diesel

started time in a month

startedforwardemail/email-templates

started time in a month

startedremoteinterview/zero

started time in a month

startedpinojs/pino

started time in a month

startedminddocdev/nest-express-winston

started time in a month

startedminddocdev/accesscontrol

started time in a month

startedkelektiv/node.bcrypt.js

started time in a month

startedshaneGirish/bcrypt-nodejs

started time in a month

startedgraphql/dataloader

started time in a month

startedpnpm/pnpm

started time in a month

startedShopify/kubeaudit

started time in a month

startedyeojz/otplib

started time in a month

startedjaredhanson/passport-local

started time in a month

startedToonvanStrijp/nestjs-i18n

started time in a month

startedpqina/filepond

started time in a month

startedwekan/wekan

started time in a month

startedgetredash/redash

started time in a month

startedmatrix-org/synapse

started time in a month

startedelsewhencode/project-guidelines

started time in a month

startedmojs/mojs

started time in a month

startedramda/ramda

started time in a month

starteddate-fns/date-fns

started time in a month

startedtj/n

started time in a month

startedNectarJS/nectarjs

started time in a month

startedheimdalljs/heimdalljs-lib

started time in a month

startedbroccolijs/broccoli

started time in a month

startedcodex-team/editor.js

started time in a month

startedTheodo-UK/nestjs-admin

started time in 2 months

startedtypescript-eslint/typescript-eslint

started time in 2 months

startedrossta/montrose

started time in 2 months

startedprisma/prisma

started time in 2 months

startednrwl/nx

started time in 2 months

starteddavydovanton/kan

started time in 2 months

issue closedsunny/actor

[Question] allow_nil, type, and must supported at the same time?

First, great work with the gem!

I was wondering: are these attributes supported at the same time?

Why

Given the scenario that I have an interactor that looks like this:

class MyInteractor < Actor

    # weekdays is an Array of strings
    input :weekdays, type: Array, must: { 
      be_valid: ->(weekdays) { weekdays.all?(SomeValidation)  } 
    }, default: DefaultWeekdays, allow_nil: true
end

In this scenario, weekdays is optional. If this input is not sent, it defaults to something else. The issue I am having at the moment is that it can also be nil and that would also trigger the usage of the defaults.

I get a ServiceActor::ArgumentError, because in the must: validation weekdays is nil -- fixing it implies in using weekdays.nil? || ... to allow this optional scenario.

Is that expected or am I missing something here?

Again, thanks for the great work 🙏

closed time in 2 months

luizfonseca

issue commentsunny/actor

[Question] allow_nil, type, and must supported at the same time?

@sunny It does! Thanks for the clarifications! 🙏

I am going to close the issue, as my original point has been clarified. Thank you for the great work on the library 👍

luizfonseca

comment created time in 2 months

startedxz/fonts

started time in 2 months

startedwelldone-software/why-did-you-render

started time in 2 months

startedexcalidraw/excalidraw

started time in 2 months

startedSemantic-Org/Semantic-UI-React

started time in 2 months

startedgo-pg/pg

started time in 2 months

startedgraphql-go/graphql

started time in 2 months

startedSTRML/react-draggable

started time in 2 months

issue openedsunny/actor

[Question] Is allow_nil, type, and must supported at the same time?

First, great work with the gem!

I was wondering: are these attributes supported at the same time?

Why

Given the scenario that I have an interactor that looks like this:

class MyInteractor < Actor

    # weekdays is an Array of strings
    input :weekdays, type: Array, must: { 
      be_valid: ->(weekdays) { weekdays.all?(SomeValidation)  } 
    }, default: DefaultWeekdays, allow_nil: true
end

In this scenario, weekdays is optional. If this input is not sent, it defaults to something else. The issue I am having at the moment is that it can also be nil and that would also trigger the usage of the defaults.

I get a ServiceActor::ArgumentError, because in the must: validation weekdays is nil -- fixing it implies in using weekdays.nil? || ... to allow this optional scenario.

Is that expected or am I missing something here?

Again, thanks for the great work 🙏

created time in 2 months

startedmohithg/react-typeform

started time in 2 months

startedAndyOsei/rn-onboarding-screens

started time in 2 months

startedvanGalilea/react-native-testing

started time in 2 months

startedNewBieBR/react-native-magic-confetti

started time in 2 months

startedmobily/stacks

started time in 2 months

startedjanko/rodauth-rails

started time in 2 months

startedcontentful/contentful.rb

started time in 2 months

startednysamnang/react-native-raw-bottom-sheet

started time in 2 months

startednysamnang/react-native-24h-timepicker

started time in 2 months

startedcollectiveidea/interactor

started time in 2 months

startedgettalong/kramdown

started time in 2 months

startedsunny/actor

started time in 2 months

startedexpo/react-native-action-sheet

started time in 2 months

push eventluizfonseca/github-actions-rubocop

Luiz Fonseca

commit sha c883ab47bcfafe9b63321bca85b0d5c4517991e0

Update README.md

view details

push time in 2 months

release lyttco/github-actions-rubocop

1.5.5

released time in 2 months

created taglyttco/github-actions-rubocop

tag1.5.5

Github Action to Lint your Ruby code in parallel to your builds (Ruby 2.6.3)

created time in 2 months

push eventlyttco/github-actions-rubocop

Luiz Fonseca

commit sha 4708ae3cdbfa85d767cfe161f3b93c44d698e8c5

Add rubocop-rspec

view details

push time in 2 months

startedhopsoft/stimulus_reflex

started time in 3 months

startedzbtang/React-Native-ViewPager

started time in 3 months

startedjeremybarbet/react-native-portalize

started time in 3 months

startedoblador/react-native-progress

started time in 3 months

more