diff options
Diffstat (limited to 'src/tg/type-macros.lisp')
| -rw-r--r-- | src/tg/type-macros.lisp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tg/type-macros.lisp b/src/tg/type-macros.lisp index 5f99cba..75afab0 100644 --- a/src/tg/type-macros.lisp +++ b/src/tg/type-macros.lisp | |||
| @@ -5,9 +5,9 @@ | |||
| 5 | (:use :c2cl :iterate) | 5 | (:use :c2cl :iterate) |
| 6 | (:import-from :alexandria :with-gensyms) | 6 | (:import-from :alexandria :with-gensyms) |
| 7 | (:import-from :com.dieggsy.f-string :enable-f-strings) | 7 | (:import-from :com.dieggsy.f-string :enable-f-strings) |
| 8 | (:import-from :str) | ||
| 8 | (:import-from :ukkoclot/serializing :parse-value) | 9 | (:import-from :ukkoclot/serializing :parse-value) |
| 9 | (:import-from :ukkoclot/hash-tables :gethash-lazy) | 10 | (:import-from :ukkoclot/hash-tables :gethash-lazy) |
| 10 | (:import-from :ukkoclot/strings :lisp->snake-case) | ||
| 11 | (:local-nicknames | 11 | (:local-nicknames |
| 12 | (:jzon :com.inuoe.jzon)) | 12 | (:jzon :com.inuoe.jzon)) |
| 13 | (:export :define-tg-type)) | 13 | (:export :define-tg-type)) |
| @@ -39,7 +39,7 @@ | |||
| 39 | (intern (concatenate 'string (symbol-name name) "-" (symbol-name (field-name field))))) | 39 | (intern (concatenate 'string (symbol-name name) "-" (symbol-name (field-name field))))) |
| 40 | 40 | ||
| 41 | (defun field-hash-key (field) | 41 | (defun field-hash-key (field) |
| 42 | (string-downcase (lisp->snake-case (symbol-name (field-name field))))) | 42 | (str:snake-case (field-name field))) |
| 43 | 43 | ||
| 44 | (defun field-keyword (field) | 44 | (defun field-keyword (field) |
| 45 | (intern (symbol-name (field-name field)) :keyword)) | 45 | (intern (symbol-name (field-name field)) :keyword)) |