176 Commits

Author SHA1 Message Date
soupette
8ddf955af2 Fixes #5781
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-04-16 12:00:26 +02:00
Alexandre Bodin
cc9d23c3ac Merge branch 'develop' into features/media-lib
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-04-07 20:24:39 +02:00
Yassir Barchi
3a42a49162
Add RegExp as text type attribute validation option (#5648)
* feat: add Regexp for attribute value validation

strapi-plugin-content-type-builder

Signed-off-by: Yassir Barchi <dev.yassir@gmail.com>

* feat: add Regexp for attribute value validation

strapi-plugin-content-manager

Signed-off-by: Yassir Barchi <dev.yassir@gmail.com>

* fix error on submit

Signed-off-by: Yassir Barchi <dev.yassir@gmail.com>

* add regex pattern validation

Signed-off-by: Yassir Barchi <dev.yassir@gmail.com>

* add api validation

Signed-off-by: Yassir Barchi <dev.yassir@gmail.com>

* fix lint issues

Signed-off-by: Yassir Barchi <dev.yassir@gmail.com>

* remove redundant code

Signed-off-by: Yassir Barchi <dev.yassir@gmail.com>

* fix en.json build issue

Signed-off-by: Yassir Barchi <dev.yassir@gmail.com>

* add the reset input logic to the regex field

Signed-off-by: Yassir Barchi <dev.yassir@gmail.com>
2020-04-07 10:41:46 +02:00
Alexandre Bodin
5a259ddf41 Merge branch 'develop' into features/media-lib
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-30 16:00:24 +02:00
Alexandre Bodin
86312ecbaf Add content-type kind property
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-30 14:50:45 +02:00
Alexandre Bodin
6f2103a402 Init sender and middleware, ping
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-30 14:50:19 +02:00
Alexandre Bodin
243085dae1 Merge branch 'develop' into features/media-lib 2020-03-13 15:40:11 +01:00
Pierre Noël
1227bfeba4 add possibility to set a relation "private"
Signed-off-by: Pierre Noël <pierre.noel@strapi.io>
2020-03-13 12:23:11 +01:00
Alexandre Bodin
32c021db37 Remove allowedType all option
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-12 09:29:01 +01:00
Alexandre Bodin
196160dc1c Add allowedType in ctb and init getMediaTypes api
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-05 10:29:07 +01:00
Alexandre Bodin
7a8c865051 Merge branch 'develop' into features/media-lib
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-03-02 15:18:08 +01:00
soupette
725a0940ab Fixes #5343
Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-02-27 17:10:20 +01:00
Alexandre Bodin
5d1e7c101e Handles clearing defaults and non existing targetField on update
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-12 11:28:08 +01:00
Alexandre Bodin
63c248bfde Add maxLength rules to UID validators
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-12 10:57:37 +01:00
Alexandre Bodin
f9a4b94040 Add default uid value validation
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-12 10:46:56 +01:00
Alexandre Bodin
9012e7a0ca Add UID in CTB validators
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-12 09:06:38 +01:00
Alexandre Bodin
dbca2ef5d9 Add ctb tests for single type relation diff
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-02-10 21:38:35 +01:00
Alexandre Bodin
dce6bd432c Merge branch 'develop' into features/single-types 2020-01-21 11:46:26 +01:00
Alexandre Bodin
daaf1392d2 Merge branch 'master' into develop 2020-01-21 11:46:04 +01:00
Alexandre Bodin
323e76b5f3 Merge branch 'develop' into features/single-types
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-01-20 17:33:58 +01:00
Alexandre Bodin
469dd33374 Make kind optional but use collectionType as default
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-01-16 16:56:14 +01:00
Alexandre Bodin
88a5a0a654 Add kind in bootstrap and relations can only be created with collection types
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-01-16 16:56:13 +01:00
Alexandre Bodin
57122c4acb Add kind property to content-type-builder
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-01-16 16:56:13 +01:00
Patai Adam
3bce61005a
Merge branch 'master' into fix/remove-auto-populate 2020-01-14 15:06:21 +01:00
Alexandre Bodin
f28292b384 Merge branch 'develop' into features/webhooks 2020-01-09 11:09:26 +01:00
Alexandre BODIN
a427c27cfd
Merge pull request #4947 from strapi/fix/use-strapi-service
Use strapi.services instead of requires to allow overrides
2020-01-09 10:13:05 +01:00
Alexandre BODIN
c5cef7dcbb fix - keep autoPopulate:false options on edit 2020-01-08 19:00:12 +01:00
Alexandre Bodin
7c94a2316d Init strapi.service and use it where services where required 2020-01-08 17:57:53 +01:00
Alexandre Bodin
4965846d36 Add datetiem and time validators in ctb 2020-01-08 17:03:03 +01:00
Alexandre Bodin
016b61fe00 Add tests 2019-12-24 16:56:02 +01:00
Alexandre Bodin
74d25bb459 Add validators 2019-12-24 14:49:44 +01:00
Alexandre Bodin
58d20429a6 Fix category regex allow - in name 2019-12-19 08:39:08 +01:00
Alexandre Bodin
7381acad58 Allow private field and collectionName with - 2019-12-17 13:17:38 +01:00
Alexandre Bodin
2b101f8f05 Allow empty dz component list 2019-12-12 17:45:49 +01:00
Alexandre Bodin
bdd0a08ecb Prevent creation of special keys 2019-12-10 17:24:55 +01:00
Alexandre Bodin
fc36055ff6 Add configurable as a valid api option 2019-12-09 14:53:30 +01:00
Alexandre Bodin
fe5ff4bc83 Handle and parse datetime & timestamps 2019-12-04 17:49:14 +01:00
Alexandre Bodin
4c784318d8 Handle time type 2019-12-04 17:49:13 +01:00
Alexandre Bodin
e8078c1ee9 Fix component category edition and allow icon with hyphen in the name 2019-12-04 09:56:07 +01:00
Alexandre Bodin
0ab7ffd3c3 Allow some null values in ctb 2019-12-03 21:43:45 +01:00
Alexandre Bodin
68534fb4cd Allow self referencing content type creation 2019-11-26 19:06:10 +01:00
Alexandre Bodin
62fe0dc48e Feedbacks and remove old tests 2019-11-25 17:32:58 +01:00
Alexandre Bodin
0f79a20ef1 Add not found errors 2019-11-25 16:33:00 +01:00
Alexandre Bodin
e60e648a78 Use schema builder in component categories service 2019-11-25 15:16:06 +01:00
Alexandre Bodin
8c0fac18f3 use tmpUID 2019-11-25 14:48:10 +01:00
Alexandre Bodin
cdbd6e4063 Simplify schema builder 2019-11-25 12:25:17 +01:00
Alexandre Bodin
bee3059406 Allow nested components in CT 2019-11-21 20:45:21 +01:00
Alexandre Bodin
6f82a4ea48 Disallow empty enum 2019-11-20 18:27:39 +01:00
Alexandre Bodin
f255d0d700 init edit and delete content type with schema manager 2019-11-20 18:27:38 +01:00
Alexandre Bodin
22ca3c476a Init content type build with schema manager 2019-11-20 18:27:37 +01:00