1281415c48
[DEV] integrate hybernate validator
2025-03-16 11:24:16 +01:00
1673f1680b
[FEAT] add a spotbug nullable
2025-03-15 08:06:59 +01:00
04a82250d8
[FEAT] add capability to catch ConstraintViolationException
2025-03-15 08:06:50 +01:00
0326bde209
[FEAT] understable template typing
2025-03-10 07:27:51 +01:00
c1ccaf20ec
[FEAT] rework the generation of code for typescript ( #27 )
...
This PR is not compatible with previous code...
Rename some Annotation to have a better experience
Update the generation of the Typescript object
===================================
By default the generation of object are only the object requested
if you annotate the object with: `@ApiGenerationMode(create = true,
update = true)`
the generation will add 2 object in typescript:
- `MyClassUpdate` that contain the object specific for `PUT` request
- `MyClassCreate` that contain the object specific for `POST` request
- the PATCH request are generate with `Partial<MyClassUpdate>`
If you do not generate the create or update the system will wrap the
bass by default: `MyClass`
Add support of hidding the element in the generated object
=============================================
When generate the object some field are not needed to transmit to the
client, then we add `@ApiAccessLimitation(creatable = false, updatable =
false)` that permit to remove the field when Update or Create object are
generated
It will be used to check the Input validity instead of
`@schema(readonly)` (error of implementation)
TODO:
=====
- Some issue when request Update generation and parent does not exist
- The checker is not updated with the use of the `@ApiAccessLimitation`
decorator.
dependencies:
===========
- Closes: https://github.com/kangaroo-and-rabbit/archidata/issues/22
2025-03-08 14:32:16 +01:00
2174d7689f
[FEAT] add callback to detect and collect errors
2025-03-05 23:48:15 +01:00
15113807b3
[DOC] add some documentation
2025-03-05 23:45:08 +01:00
be8a5c713a
[FIX] ObjectId manyToOne and OneToMany
2025-02-17 00:16:11 +01:00
5f89ff7944
[DEV] add variable to permit not check if the DB exist
2025-02-09 22:05:35 +01:00
0c932d4e92
[FEAT] set the object enpty as identical as their parent.
...
this prevent react-hook-form resolver erreur, it does not support empty object
2025-02-04 21:15:10 +01:00
a400bb99b8
[FEAT] add Jwt token description to be serialize in front
2025-02-02 19:34:23 +01:00
d36c366ab6
[FIX] zod number gte/lte
2025-01-30 21:25:15 +01:00
015c38ff5b
[FEAT] add @CheckForeignKey but not tested
2025-01-29 23:30:01 +01:00
24590b2a1e
[FIX] correct min and mas size of string
2025-01-29 23:10:53 +01:00
c04660c01a
[FEAT] simplify annotation tool
2025-01-29 23:09:49 +01:00
3e81673d38
[FIX] normalize comment when check size
2025-01-29 22:43:22 +01:00
69880df4aa
[FIX] missing string size checker
2025-01-29 22:41:08 +01:00
510553550f
[FIX] remove unneeded comment
2025-01-29 22:40:34 +01:00
e071d3dbf7
[FEAT] correct the output generation of the typescript ==> missing decimal min and decimal max ==> need to test pattern and email
2025-01-29 00:34:49 +01:00
249e6ad2c8
set JPAChecker agnostic of @ManyToOne primary key type
2025-01-28 23:48:40 +01:00
e156e528c1
[FIX] use instance of DB instead of create a new one
2025-01-28 23:44:36 +01:00
ba6478182d
[API] move the cheker in the correct folder
2025-01-28 23:25:32 +01:00
cc639243fc
[FEAT] add support of @DecimalMin and @DecimalMax
2025-01-28 23:17:34 +01:00
b5fcc3e20c
[FEAT,API] remove checker from JsonData and creadte @CheckerAnnotation
2025-01-28 23:15:11 +01:00
d028eb2261
Manage correct rights
2025-01-26 23:38:48 +01:00
ca18d3759d
[FIX] congig in config
2025-01-25 15:48:35 +01:00
a7c9bb5e1b
[FIX] do not set the table name at unknow when null is find
2025-01-25 15:48:04 +01:00
d011b3a587
[FEAT] add decorator CollectionNotEmpty
2025-01-25 14:41:39 +01:00
6974adbfdf
[FEAT] add decorator CollectionItemUnique
2025-01-25 14:41:20 +01:00
461aece7a0
[FEAT] add decorator @CollectionItemNotNull
2025-01-25 14:40:07 +01:00
3f15d560ed
[FEAT] better interface for dataJson
2025-01-25 14:38:53 +01:00
8f3c14e28d
[FEAT] assert when try to insart null data
2025-01-25 12:16:39 +01:00
0d419f651e
[FIX] dataJson checker is not responsive for null data pointer
2025-01-25 12:16:13 +01:00
9dad14d200
[FIX] many-many support every key type
2025-01-25 12:15:25 +01:00
990b7c08da
[FIX] correct right: set it when no element is requested
2025-01-18 09:57:55 +01:00
7f393a9e44
[FIX] set User block boolean nullable for creation capability (front pb)
2025-01-18 09:57:52 +01:00
c91291dbce
[DOC] log better display of path when call filter authentication
2025-01-18 09:57:47 +01:00
1abbac944d
[FIX] correct the bug of multiple access on the add-on list
2025-01-11 10:42:29 +01:00
cef06889ee
[DOC] add comment
2025-01-11 10:42:00 +01:00
1e05e8361a
[DEV] update UUID error in ObjectId to be simple
2025-01-08 19:54:08 +01:00
4adc097c6b
[DEV] rename RESTErrorResponseExeption in RESTErrorResponseException
2025-01-08 19:53:27 +01:00
5a97f794f6
[Fix] name of the UUID data
2025-01-06 23:46:17 +01:00
2dd82fe247
[FIX] path of the stored data
2025-01-05 22:48:53 +01:00
d3a7db4f21
[FEAT] update ObjectId for data
2025-01-05 21:41:19 +01:00
ea8e2cc452
[FIX] system.out removing to use all time LOGGER
2025-01-05 21:40:39 +01:00
ee831283d3
[FIX] dynamc modification type for DataJson
2025-01-02 23:06:27 +01:00
6b12d26a8b
[FIX] remove comment
2025-01-02 23:05:47 +01:00
59e40a40d4
[FIX] simple correction of typing
2025-01-02 23:05:08 +01:00
b6bf7acd79
[FEAT] use a generic ObjectMapper factory to support the same suset of the tools
2025-01-02 23:04:10 +01:00
b581702df4
[FIX] corrent the search of primary key to support Morphia
2025-01-02 23:01:13 +01:00