create-validator-tsã¨ããTypeScriptã®åå®ç¾©ããJSON Schemaã使ã£ãããªãã¼ã·ã§ã³ã³ã¼ããçæãããã¼ã«ãæ¸ãã¾ããã ã¢ããã¼ã·ã§ã³ expressãªã©ã§APIãæ¸ãã¨ãã«ãRequest/Responseãæå³ãããã®ãã©ãããããªãã¼ã·ã§ã³ããå¿ è¦ãããã¾ãã ç¹ã«req.queryãªã©ã¯Stringãå ¥ãã¨äºæ³ãã¾ããããªãã¸ã§ã¯ããå ¥ã£ã¦ãããã¨ãããã¾ãã ããã¯ãexpressã®å é¨ã§ä½¿ã£ã¦ããqsã¨ããURLã¯ã¨ãªã®ãã¼ãµãããªãã¸ã§ã¯ããé åã¸å±éããæ©è½ãæã£ã¦ããããã§ãã expressã使ã£ã¦ããµã¤ã㯠?q=text ãããã¨ãã« req.query.q ã«ã¯ ãªãã¸ã§ã¯ããå ¥ãå¯è½æ§ãã¡ããã¨èæ ®ããªãã¨ãããªãã ?q[a]=text 㧠req.query.q ; // { a: "text" } ã«ãªã â azu
{{#tags}}- {{label}}
{{/tags}}