cryptic-game / python3-lib

A python3 libary for cryptic-game microservices

Home Page:https://cryptic-game.net/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

required and optional data

use-to opened this issue · comments

commented
commented

Maybe we can pass the required data as parameters instead of a dict. So we can inspect the function parameters via decorator and eliminate the requires parameter.

Yeah could do that but I am not certain it would look ugly because of so many Parameters. I personaly prefer the dict version we can define it once in scheme.py and use it possible for multiple endpoints -> less redundancy

Should we use the scheme (https://pypi.org/project/scheme/) or go for our own more light weight solution ? @use-to